#include"dao_QtOpenGL.h"

void Dao_PutQListP_QAbstractButton( DaoContext *ctx, const QListP_QAbstractButton & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_Wrap( dao_QAbstractButton_Typer, qlist[i] );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQListP_QAbstractButton( DaoList *dlist, QListP_QAbstractButton & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QAbstractButton_Typer ) ) continue;
		qlist.append( (QAbstractButton*) DValue_CastCData( & it, dao_QAbstractButton_Typer ) );
	}
}

void Dao_PutQListP_QAction( DaoContext *ctx, const QListP_QAction & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_Wrap( dao_QAction_Typer, qlist[i] );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQListP_QAction( DaoList *dlist, QListP_QAction & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QAction_Typer ) ) continue;
		qlist.append( (QAction*) DValue_CastCData( & it, dao_QAction_Typer ) );
	}
}

void Dao_PutQListP_QDockWidget( DaoContext *ctx, const QListP_QDockWidget & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_Wrap( dao_QDockWidget_Typer, qlist[i] );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQListP_QDockWidget( DaoList *dlist, QListP_QDockWidget & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QDockWidget_Typer ) ) continue;
		qlist.append( (QDockWidget*) DValue_CastCData( & it, dao_QDockWidget_Typer ) );
	}
}

void Dao_PutQListP_QGraphicsItem( DaoContext *ctx, const QListP_QGraphicsItem & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_Wrap( dao_QGraphicsItem_Typer, qlist[i] );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQListP_QGraphicsItem( DaoList *dlist, QListP_QGraphicsItem & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QGraphicsItem_Typer ) ) continue;
		qlist.append( (QGraphicsItem*) DValue_CastCData( & it, dao_QGraphicsItem_Typer ) );
	}
}

void Dao_PutQListP_QGraphicsView( DaoContext *ctx, const QListP_QGraphicsView & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_Wrap( dao_QGraphicsView_Typer, qlist[i] );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQListP_QGraphicsView( DaoList *dlist, QListP_QGraphicsView & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QGraphicsView_Typer ) ) continue;
		qlist.append( (QGraphicsView*) DValue_CastCData( & it, dao_QGraphicsView_Typer ) );
	}
}

void Dao_PutQListP_QGraphicsWidget( DaoContext *ctx, const QListP_QGraphicsWidget & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_Wrap( dao_QGraphicsWidget_Typer, qlist[i] );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQListP_QGraphicsWidget( DaoList *dlist, QListP_QGraphicsWidget & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QGraphicsWidget_Typer ) ) continue;
		qlist.append( (QGraphicsWidget*) DValue_CastCData( & it, dao_QGraphicsWidget_Typer ) );
	}
}

void Dao_PutQListP_QListWidgetItem( DaoContext *ctx, const QListP_QListWidgetItem & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_Wrap( dao_QListWidgetItem_Typer, qlist[i] );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQListP_QListWidgetItem( DaoList *dlist, QListP_QListWidgetItem & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QListWidgetItem_Typer ) ) continue;
		qlist.append( (QListWidgetItem*) DValue_CastCData( & it, dao_QListWidgetItem_Typer ) );
	}
}

void Dao_PutQListP_QMdiSubWindow( DaoContext *ctx, const QListP_QMdiSubWindow & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_Wrap( dao_QMdiSubWindow_Typer, qlist[i] );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQListP_QMdiSubWindow( DaoList *dlist, QListP_QMdiSubWindow & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QMdiSubWindow_Typer ) ) continue;
		qlist.append( (QMdiSubWindow*) DValue_CastCData( & it, dao_QMdiSubWindow_Typer ) );
	}
}

void Dao_PutQListP_QStandardItem( DaoContext *ctx, const QListP_QStandardItem & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_Wrap( dao_QStandardItem_Typer, qlist[i] );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQListP_QStandardItem( DaoList *dlist, QListP_QStandardItem & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QStandardItem_Typer ) ) continue;
		qlist.append( (QStandardItem*) DValue_CastCData( & it, dao_QStandardItem_Typer ) );
	}
}

void Dao_PutQListP_QTableWidgetItem( DaoContext *ctx, const QListP_QTableWidgetItem & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_Wrap( dao_QTableWidgetItem_Typer, qlist[i] );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQListP_QTableWidgetItem( DaoList *dlist, QListP_QTableWidgetItem & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QTableWidgetItem_Typer ) ) continue;
		qlist.append( (QTableWidgetItem*) DValue_CastCData( & it, dao_QTableWidgetItem_Typer ) );
	}
}

void Dao_PutQListP_QTextFrame( DaoContext *ctx, const QListP_QTextFrame & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_Wrap( dao_QTextFrame_Typer, qlist[i] );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQListP_QTextFrame( DaoList *dlist, QListP_QTextFrame & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QTextFrame_Typer ) ) continue;
		qlist.append( (QTextFrame*) DValue_CastCData( & it, dao_QTextFrame_Typer ) );
	}
}

void Dao_PutQListP_QTreeWidgetItem( DaoContext *ctx, const QListP_QTreeWidgetItem & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_Wrap( dao_QTreeWidgetItem_Typer, qlist[i] );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQListP_QTreeWidgetItem( DaoList *dlist, QListP_QTreeWidgetItem & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QTreeWidgetItem_Typer ) ) continue;
		qlist.append( (QTreeWidgetItem*) DValue_CastCData( & it, dao_QTreeWidgetItem_Typer ) );
	}
}

void Dao_PutQListP_QUndoStack( DaoContext *ctx, const QListP_QUndoStack & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_Wrap( dao_QUndoStack_Typer, qlist[i] );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQListP_QUndoStack( DaoList *dlist, QListP_QUndoStack & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QUndoStack_Typer ) ) continue;
		qlist.append( (QUndoStack*) DValue_CastCData( & it, dao_QUndoStack_Typer ) );
	}
}

void Dao_PutQListP_QWidget( DaoContext *ctx, const QListP_QWidget & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_Wrap( dao_QWidget_Typer, qlist[i] );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQListP_QWidget( DaoList *dlist, QListP_QWidget & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QWidget_Typer ) ) continue;
		qlist.append( (QWidget*) DValue_CastCData( & it, dao_QWidget_Typer ) );
	}
}

void Dao_PutQList_QPolygonF( DaoContext *ctx, const QList_QPolygonF & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_New( dao_QPolygonF_Typer, new QPolygonF( qlist[i] ) );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQList_QPolygonF( DaoList *dlist, QList_QPolygonF & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QPolygonF_Typer ) ) continue;
		qlist.append( *(QPolygonF*) DValue_CastCData( & it, dao_QPolygonF_Typer ) );
	}
}

void Dao_PutQVector_QColor( DaoContext *ctx, const QVector_QColor & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_New( dao_QColor_Typer, new QColor( qlist[i] ) );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQVector_QColor( DaoList *dlist, QVector_QColor & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QColor_Typer ) ) continue;
		qlist.append( *(QColor*) DValue_CastCData( & it, dao_QColor_Typer ) );
	}
}

void Dao_PutQVector_QLine( DaoContext *ctx, const QVector_QLine & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_New( dao_QLine_Typer, new QLine( qlist[i] ) );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQVector_QLine( DaoList *dlist, QVector_QLine & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QLine_Typer ) ) continue;
		qlist.append( *(QLine*) DValue_CastCData( & it, dao_QLine_Typer ) );
	}
}

void Dao_PutQVector_QLineF( DaoContext *ctx, const QVector_QLineF & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_New( dao_QLineF_Typer, new QLineF( qlist[i] ) );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQVector_QLineF( DaoList *dlist, QVector_QLineF & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QLineF_Typer ) ) continue;
		qlist.append( *(QLineF*) DValue_CastCData( & it, dao_QLineF_Typer ) );
	}
}

void Dao_PutQVector_QPoint( DaoContext *ctx, const QVector_QPoint & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_New( dao_QPoint_Typer, new QPoint( qlist[i] ) );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQVector_QPoint( DaoList *dlist, QVector_QPoint & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QPoint_Typer ) ) continue;
		qlist.append( *(QPoint*) DValue_CastCData( & it, dao_QPoint_Typer ) );
	}
}

void Dao_PutQVector_QPointF( DaoContext *ctx, const QVector_QPointF & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_New( dao_QPointF_Typer, new QPointF( qlist[i] ) );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQVector_QPointF( DaoList *dlist, QVector_QPointF & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QPointF_Typer ) ) continue;
		qlist.append( *(QPointF*) DValue_CastCData( & it, dao_QPointF_Typer ) );
	}
}

void Dao_PutQVector_QRect( DaoContext *ctx, const QVector_QRect & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_New( dao_QRect_Typer, new QRect( qlist[i] ) );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQVector_QRect( DaoList *dlist, QVector_QRect & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QRect_Typer ) ) continue;
		qlist.append( *(QRect*) DValue_CastCData( & it, dao_QRect_Typer ) );
	}
}

void Dao_PutQVector_QRectF( DaoContext *ctx, const QVector_QRectF & qlist )
{
	DaoList *dlist = DaoContext_PutList( ctx );
	DValue it = { DAO_CDATA, 0, 0, 0, {0} };
	int i, m = qlist.size();
	for(i=0; i<m; i++){
		it.v.cdata = DaoCData_New( dao_QRectF_Typer, new QRectF( qlist[i] ) );
		DaoList_PushBack( dlist, it );
	}
}
void Dao_GetQVector_QRectF( DaoList *dlist, QVector_QRectF & qlist )
{
	int i, m = DaoList_Size( dlist );
	for(i=0; i<m; i++){
		DValue it = DaoList_GetItem( dlist, i );
		if( it.t != DAO_CDATA ) continue;
		if( ! DaoCData_IsType( it.v.cdata, dao_QRectF_Typer ) ) continue;
		qlist.append( *(QRectF*) DValue_CastCData( & it, dao_QRectF_Typer ) );
	}
}

#ifdef __cplusplus
extern "C"{
#endif

/*  qglframebufferobject.h */


static DaoNumItem dao_Attachment_Nums[] =
{
  { NULL, 0, 0 }
};

static DaoFuncItem dao_Attachment_Meths[] = 
{
  { NULL, NULL }
};
static void Dao_Attachment_Delete( void *self )
{
	free( self );
}

static DaoTypeBase Attachment_Typer = 
{ "Attachment", NULL, 
  dao_Attachment_Nums,
  dao_Attachment_Meths, 
  { 0 },
  { 0 },
  Dao_Attachment_Delete,
  NULL
};
DaoTypeBase DAO_DLL_QTOPENGL *dao_Attachment_Typer = & Attachment_Typer;

/*  qgl.h */


static DaoNumItem dao_OpenGLContextProfile_Nums[] =
{
  { NULL, 0, 0 }
};

static DaoFuncItem dao_OpenGLContextProfile_Meths[] = 
{
  { NULL, NULL }
};
static void Dao_OpenGLContextProfile_Delete( void *self )
{
	free( self );
}

static DaoTypeBase OpenGLContextProfile_Typer = 
{ "OpenGLContextProfile", NULL, 
  dao_OpenGLContextProfile_Nums,
  dao_OpenGLContextProfile_Meths, 
  { 0 },
  { 0 },
  Dao_OpenGLContextProfile_Delete,
  NULL
};
DaoTypeBase DAO_DLL_QTOPENGL *dao_OpenGLContextProfile_Typer = & OpenGLContextProfile_Typer;

/*  qglbuffer.h */


static DaoNumItem dao_QGLBuffer_Nums[] =
{
  { "VertexBuffer", DAO_INTEGER, QGLBuffer::VertexBuffer },
  { "IndexBuffer", DAO_INTEGER, QGLBuffer::IndexBuffer },
  { "PixelPackBuffer", DAO_INTEGER, QGLBuffer::PixelPackBuffer },
  { "PixelUnpackBuffer", DAO_INTEGER, QGLBuffer::PixelUnpackBuffer },
  { "StreamDraw", DAO_INTEGER, QGLBuffer::StreamDraw },
  { "StreamRead", DAO_INTEGER, QGLBuffer::StreamRead },
  { "StreamCopy", DAO_INTEGER, QGLBuffer::StreamCopy },
  { "StaticDraw", DAO_INTEGER, QGLBuffer::StaticDraw },
  { "StaticRead", DAO_INTEGER, QGLBuffer::StaticRead },
  { "StaticCopy", DAO_INTEGER, QGLBuffer::StaticCopy },
  { "DynamicDraw", DAO_INTEGER, QGLBuffer::DynamicDraw },
  { "DynamicRead", DAO_INTEGER, QGLBuffer::DynamicRead },
  { "DynamicCopy", DAO_INTEGER, QGLBuffer::DynamicCopy },
  { "ReadOnly", DAO_INTEGER, QGLBuffer::ReadOnly },
  { "WriteOnly", DAO_INTEGER, QGLBuffer::WriteOnly },
  { "ReadWrite", DAO_INTEGER, QGLBuffer::ReadWrite },
  { NULL, 0, 0 }
};
static void dao_QGLBuffer_QGLBuffer( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLBuffer_QGLBuffer_dao_2( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLBuffer_QGLBuffer_dao_3( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLBuffer_allocate( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLBuffer_allocate_dao_2( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLBuffer_bind( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLBuffer_bufferId( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLBuffer_create( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLBuffer_destroy( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLBuffer_isCreated( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLBuffer_map( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLBuffer_read( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLBuffer_release( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLBuffer_release_dao_2( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLBuffer_setUsagePattern( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLBuffer_size( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLBuffer_type( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLBuffer_unmap( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLBuffer_usagePattern( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLBuffer_write( DaoContext *_ctx, DValue *_p[], int _n );

static DaoFuncItem dao_QGLBuffer_Meths[] = 
{
  { dao_QGLBuffer_QGLBuffer, "QGLBuffer(  )=>QGLBuffer" },
  { dao_QGLBuffer_QGLBuffer_dao_2, "QGLBuffer( type : int )=>QGLBuffer" },
  { dao_QGLBuffer_QGLBuffer_dao_3, "QGLBuffer( other : QGLBuffer )=>QGLBuffer" },
  { dao_QGLBuffer_allocate, "allocate( self : QGLBuffer, data : cdata, count : int )" },
  { dao_QGLBuffer_allocate_dao_2, "allocate( self : QGLBuffer, count : int )" },
  { dao_QGLBuffer_bind, "bind( self : QGLBuffer )=>int" },
  { dao_QGLBuffer_bufferId, "bufferId( self : QGLBuffer )=>int" },
  { dao_QGLBuffer_create, "create( self : QGLBuffer )=>int" },
  { dao_QGLBuffer_destroy, "destroy( self : QGLBuffer )" },
  { dao_QGLBuffer_isCreated, "isCreated( self : QGLBuffer )=>int" },
  { dao_QGLBuffer_map, "map( self : QGLBuffer, access : int )=>cdata" },
  { dao_QGLBuffer_read, "read( self : QGLBuffer, offset : int, data : cdata, count : int )=>int" },
  { dao_QGLBuffer_release, "release( self : QGLBuffer )" },
  { dao_QGLBuffer_release_dao_2, "release( type : int )" },
  { dao_QGLBuffer_setUsagePattern, "setUsagePattern( self : QGLBuffer, value : int )" },
  { dao_QGLBuffer_size, "size( self : QGLBuffer )=>int" },
  { dao_QGLBuffer_type, "type( self : QGLBuffer )=>int" },
  { dao_QGLBuffer_unmap, "unmap( self : QGLBuffer )=>int" },
  { dao_QGLBuffer_usagePattern, "usagePattern( self : QGLBuffer )=>int" },
  { dao_QGLBuffer_write, "write( self : QGLBuffer, offset : int, data : cdata, count : int )" },
  { NULL, NULL }
};
static void Dao_QGLBuffer_Delete( void *self )
{
	delete (QGLBuffer*) self;
}

static DaoTypeBase QGLBuffer_Typer = 
{ "QGLBuffer", NULL, 
  dao_QGLBuffer_Nums,
  dao_QGLBuffer_Meths, 
  { 0 },
  { 0 },
  Dao_QGLBuffer_Delete,
  NULL
};
DaoTypeBase DAO_DLL_QTOPENGL *dao_QGLBuffer_Typer = & QGLBuffer_Typer;
/* qglbuffer.h */
static void dao_QGLBuffer_QGLBuffer( DaoContext *_ctx, DValue *_p[], int _n )
{
	QGLBuffer *_self = Dao_QGLBuffer_New(  );
	DaoContext_PutCData( _ctx, _self, dao_QGLBuffer_Typer );
}
/* qglbuffer.h */
static void dao_QGLBuffer_QGLBuffer_dao_2( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLBuffer::Type type= (QGLBuffer::Type) _p[0]->v.i;
	QGLBuffer *_self = Dao_QGLBuffer_New( type );
	DaoContext_PutCData( _ctx, _self, dao_QGLBuffer_Typer );
}
/* qglbuffer.h */
static void dao_QGLBuffer_QGLBuffer_dao_3( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLBuffer* other= (QGLBuffer*) DValue_CastCData( _p[0], dao_QGLBuffer_Typer );
	QGLBuffer *_self = Dao_QGLBuffer_New( *other );
	DaoContext_PutCData( _ctx, _self, dao_QGLBuffer_Typer );
}
/* qglbuffer.h */
static void dao_QGLBuffer_allocate( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLBuffer* self= (QGLBuffer*) DValue_CastCData( _p[0], dao_QGLBuffer_Typer );
  void* data= (void*) DValue_GetCData( _p[1] );
  int count= (int) _p[2]->v.i;
  self->QGLBuffer::allocate( data, count );
}
/* qglbuffer.h */
static void dao_QGLBuffer_allocate_dao_2( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLBuffer* self= (QGLBuffer*) DValue_CastCData( _p[0], dao_QGLBuffer_Typer );
  int count= (int) _p[1]->v.i;
  self->QGLBuffer::allocate( count );
}
/* qglbuffer.h */
static void dao_QGLBuffer_bind( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLBuffer* self= (QGLBuffer*) DValue_CastCData( _p[0], dao_QGLBuffer_Typer );
  bool _bind = self->QGLBuffer::bind(  );
  DaoContext_PutInteger( _ctx, (int) _bind );
}
/* qglbuffer.h */
static void dao_QGLBuffer_bufferId( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLBuffer* self= (QGLBuffer*) DValue_CastCData( _p[0], dao_QGLBuffer_Typer );
  GLuint _bufferId = self->QGLBuffer::bufferId(  );
  DaoContext_PutInteger( _ctx, (int) _bufferId );
}
/* qglbuffer.h */
static void dao_QGLBuffer_create( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLBuffer* self= (QGLBuffer*) DValue_CastCData( _p[0], dao_QGLBuffer_Typer );
  bool _create = self->QGLBuffer::create(  );
  DaoContext_PutInteger( _ctx, (int) _create );
}
/* qglbuffer.h */
static void dao_QGLBuffer_destroy( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLBuffer* self= (QGLBuffer*) DValue_CastCData( _p[0], dao_QGLBuffer_Typer );
  self->QGLBuffer::destroy(  );
}
/* qglbuffer.h */
static void dao_QGLBuffer_isCreated( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLBuffer* self= (QGLBuffer*) DValue_CastCData( _p[0], dao_QGLBuffer_Typer );
  bool _isCreated = self->QGLBuffer::isCreated(  );
  DaoContext_PutInteger( _ctx, (int) _isCreated );
}
/* qglbuffer.h */
static void dao_QGLBuffer_map( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLBuffer* self= (QGLBuffer*) DValue_CastCData( _p[0], dao_QGLBuffer_Typer );
  QGLBuffer::Access access= (QGLBuffer::Access) _p[1]->v.i;
  void* _map = self->QGLBuffer::map( access );
  DaoContext_PutCPointer( _ctx, (void*) _map, 0 );
}
/* qglbuffer.h */
static void dao_QGLBuffer_read( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLBuffer* self= (QGLBuffer*) DValue_CastCData( _p[0], dao_QGLBuffer_Typer );
  int offset= (int) _p[1]->v.i;
  void* data= (void*) DValue_GetCData( _p[2] );
  int count= (int) _p[3]->v.i;
  bool _read = self->QGLBuffer::read( offset, data, count );
  DaoContext_PutInteger( _ctx, (int) _read );
}
/* qglbuffer.h */
static void dao_QGLBuffer_release( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLBuffer* self= (QGLBuffer*) DValue_CastCData( _p[0], dao_QGLBuffer_Typer );
  self->QGLBuffer::release(  );
}
/* qglbuffer.h */
static void dao_QGLBuffer_release_dao_2( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLBuffer::Type type= (QGLBuffer::Type) _p[0]->v.i;
  QGLBuffer::release( type );
}
/* qglbuffer.h */
static void dao_QGLBuffer_setUsagePattern( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLBuffer* self= (QGLBuffer*) DValue_CastCData( _p[0], dao_QGLBuffer_Typer );
  QGLBuffer::UsagePattern value= (QGLBuffer::UsagePattern) _p[1]->v.i;
  self->QGLBuffer::setUsagePattern( value );
}
/* qglbuffer.h */
static void dao_QGLBuffer_size( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLBuffer* self= (QGLBuffer*) DValue_CastCData( _p[0], dao_QGLBuffer_Typer );
  int _size = self->QGLBuffer::size(  );
  DaoContext_PutInteger( _ctx, (int) _size );
}
/* qglbuffer.h */
static void dao_QGLBuffer_type( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLBuffer* self= (QGLBuffer*) DValue_CastCData( _p[0], dao_QGLBuffer_Typer );
  QGLBuffer::Type _type = self->QGLBuffer::type(  );
  DaoContext_PutInteger( _ctx, (int) _type );
}
/* qglbuffer.h */
static void dao_QGLBuffer_unmap( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLBuffer* self= (QGLBuffer*) DValue_CastCData( _p[0], dao_QGLBuffer_Typer );
  bool _unmap = self->QGLBuffer::unmap(  );
  DaoContext_PutInteger( _ctx, (int) _unmap );
}
/* qglbuffer.h */
static void dao_QGLBuffer_usagePattern( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLBuffer* self= (QGLBuffer*) DValue_CastCData( _p[0], dao_QGLBuffer_Typer );
  QGLBuffer::UsagePattern _usagePattern = self->QGLBuffer::usagePattern(  );
  DaoContext_PutInteger( _ctx, (int) _usagePattern );
}
/* qglbuffer.h */
static void dao_QGLBuffer_write( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLBuffer* self= (QGLBuffer*) DValue_CastCData( _p[0], dao_QGLBuffer_Typer );
  int offset= (int) _p[1]->v.i;
  void* data= (void*) DValue_GetCData( _p[2] );
  int count= (int) _p[3]->v.i;
  self->QGLBuffer::write( offset, data, count );
}

/*  qglcolormap.h */


static DaoNumItem dao_QGLColormap_Nums[] =
{
  { NULL, 0, 0 }
};
static void dao_QGLColormap_QGLColormap( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLColormap_QGLColormap_dao_2( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLColormap_detach( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLColormap_entryColor( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLColormap_entryRgb( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLColormap_find( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLColormap_findNearest( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLColormap_isEmpty( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLColormap_setEntries( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLColormap_setEntry( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLColormap_setEntry_dao_2( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLColormap_size( DaoContext *_ctx, DValue *_p[], int _n );

static DaoFuncItem dao_QGLColormap_Meths[] = 
{
  { dao_QGLColormap_QGLColormap, "QGLColormap(  )=>QGLColormap" },
  { dao_QGLColormap_QGLColormap_dao_2, "QGLColormap( _cp0 : QGLColormap )=>QGLColormap" },
  { dao_QGLColormap_detach, "detach( self : QGLColormap )" },
  { dao_QGLColormap_entryColor, "entryColor( self : QGLColormap, idx : int )=>QColor" },
  { dao_QGLColormap_entryRgb, "entryRgb( self : QGLColormap, idx : int )=>int" },
  { dao_QGLColormap_find, "find( self : QGLColormap, color : int )=>int" },
  { dao_QGLColormap_findNearest, "findNearest( self : QGLColormap, color : int )=>int" },
  { dao_QGLColormap_isEmpty, "isEmpty( self : QGLColormap )=>int" },
  { dao_QGLColormap_setEntries, "setEntries( self : QGLColormap, count : int, colors : array<int>, base : int = 0 )" },
  { dao_QGLColormap_setEntry, "setEntry( self : QGLColormap, idx : int, color : int )" },
  { dao_QGLColormap_setEntry_dao_2, "setEntry( self : QGLColormap, idx : int, color : QColor )" },
  { dao_QGLColormap_size, "size( self : QGLColormap )=>int" },
  { NULL, NULL }
};
static void Dao_QGLColormap_Delete( void *self )
{
	delete (QGLColormap*) self;
}

static DaoTypeBase QGLColormap_Typer = 
{ "QGLColormap", NULL, 
  dao_QGLColormap_Nums,
  dao_QGLColormap_Meths, 
  { 0 },
  { 0 },
  Dao_QGLColormap_Delete,
  NULL
};
DaoTypeBase DAO_DLL_QTOPENGL *dao_QGLColormap_Typer = & QGLColormap_Typer;
/* qglcolormap.h */
static void dao_QGLColormap_QGLColormap( DaoContext *_ctx, DValue *_p[], int _n )
{
	QGLColormap *_self = Dao_QGLColormap_New(  );
	DaoContext_PutCData( _ctx, _self, dao_QGLColormap_Typer );
}
/* qglcolormap.h */
static void dao_QGLColormap_QGLColormap_dao_2( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLColormap* _cp0= (QGLColormap*) DValue_CastCData( _p[0], dao_QGLColormap_Typer );
	QGLColormap *_self = Dao_QGLColormap_New( *_cp0 );
	DaoContext_PutCData( _ctx, _self, dao_QGLColormap_Typer );
}
/* qglcolormap.h */
static void dao_QGLColormap_detach( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLColormap* self= (QGLColormap*) DValue_CastCData( _p[0], dao_QGLColormap_Typer );
  self->QGLColormap::detach(  );
}
/* qglcolormap.h */
static void dao_QGLColormap_entryColor( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLColormap* self= (QGLColormap*) DValue_CastCData( _p[0], dao_QGLColormap_Typer );
  int idx= (int) _p[1]->v.i;
  QColor _entryColor = self->QGLColormap::entryColor( idx );
  DaoContext_PutCData( _ctx, (void*)new QColor( _entryColor ), dao_QColor_Typer );
}
/* qglcolormap.h */
static void dao_QGLColormap_entryRgb( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLColormap* self= (QGLColormap*) DValue_CastCData( _p[0], dao_QGLColormap_Typer );
  int idx= (int) _p[1]->v.i;
  QRgb _entryRgb = self->QGLColormap::entryRgb( idx );
  DaoContext_PutInteger( _ctx, (int) _entryRgb );
}
/* qglcolormap.h */
static void dao_QGLColormap_find( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLColormap* self= (QGLColormap*) DValue_CastCData( _p[0], dao_QGLColormap_Typer );
  QRgb color= (QRgb) _p[1]->v.i;
  int _find = self->QGLColormap::find( color );
  DaoContext_PutInteger( _ctx, (int) _find );
}
/* qglcolormap.h */
static void dao_QGLColormap_findNearest( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLColormap* self= (QGLColormap*) DValue_CastCData( _p[0], dao_QGLColormap_Typer );
  QRgb color= (QRgb) _p[1]->v.i;
  int _findNearest = self->QGLColormap::findNearest( color );
  DaoContext_PutInteger( _ctx, (int) _findNearest );
}
/* qglcolormap.h */
static void dao_QGLColormap_isEmpty( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLColormap* self= (QGLColormap*) DValue_CastCData( _p[0], dao_QGLColormap_Typer );
  bool _isEmpty = self->QGLColormap::isEmpty(  );
  DaoContext_PutInteger( _ctx, (int) _isEmpty );
}
/* qglcolormap.h */
static void dao_QGLColormap_setEntries( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLColormap* self= (QGLColormap*) DValue_CastCData( _p[0], dao_QGLColormap_Typer );
  int count= (int) _p[1]->v.i;
  QRgb* colors= (QRgb*) DaoArray_ToUInt( _p[2]->v.array );
  int base= (int) _p[3]->v.i;
  self->QGLColormap::setEntries( count, colors, base );
}
/* qglcolormap.h */
static void dao_QGLColormap_setEntry( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLColormap* self= (QGLColormap*) DValue_CastCData( _p[0], dao_QGLColormap_Typer );
  int idx= (int) _p[1]->v.i;
  QRgb color= (QRgb) _p[2]->v.i;
  self->QGLColormap::setEntry( idx, color );
}
/* qglcolormap.h */
static void dao_QGLColormap_setEntry_dao_2( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLColormap* self= (QGLColormap*) DValue_CastCData( _p[0], dao_QGLColormap_Typer );
  int idx= (int) _p[1]->v.i;
  QColor* color= (QColor*) DValue_CastCData( _p[2], dao_QColor_Typer );
  self->QGLColormap::setEntry( idx, *color );
}
/* qglcolormap.h */
static void dao_QGLColormap_size( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLColormap* self= (QGLColormap*) DValue_CastCData( _p[0], dao_QGLColormap_Typer );
  int _size = self->QGLColormap::size(  );
  DaoContext_PutInteger( _ctx, (int) _size );
}

/*  qglcolormap.h */


static DaoNumItem dao_QGLColormap_QGLColormapData_Nums[] =
{
  { NULL, 0, 0 }
};

static DaoFuncItem dao_QGLColormap_QGLColormapData_Meths[] = 
{
  { NULL, NULL }
};

static DaoTypeBase QGLColormap_QGLColormapData_Typer = 
{ "QGLColormap_QGLColormapData", NULL, 
  dao_QGLColormap_QGLColormapData_Nums,
  dao_QGLColormap_QGLColormapData_Meths, 
  { 0 },
  { 0 },
  NULL,
  NULL
};
DaoTypeBase DAO_DLL_QTOPENGL *dao_QGLColormap_QGLColormapData_Typer = & QGLColormap_QGLColormapData_Typer;

/*  qgl.h */


static DaoNumItem dao_QGLContext_Nums[] =
{
  { "NoBindOption", DAO_INTEGER, QGLContext::NoBindOption },
  { "InvertedYBindOption", DAO_INTEGER, QGLContext::InvertedYBindOption },
  { "MipmapBindOption", DAO_INTEGER, QGLContext::MipmapBindOption },
  { "PremultipliedAlphaBindOption", DAO_INTEGER, QGLContext::PremultipliedAlphaBindOption },
  { "LinearFilteringBindOption", DAO_INTEGER, QGLContext::LinearFilteringBindOption },
  { "MemoryManagedBindOption", DAO_INTEGER, QGLContext::MemoryManagedBindOption },
  { "CanFlipNativePixmapBindOption", DAO_INTEGER, QGLContext::CanFlipNativePixmapBindOption },
  { "DefaultBindOption", DAO_INTEGER, QGLContext::DefaultBindOption },
  { "InternalBindOption", DAO_INTEGER, QGLContext::InternalBindOption },
  { NULL, 0, 0 }
};
static void dao_QGLContext_QGLContext_dao_2( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_QGLContext( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_areSharing( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_bindTexture_dao_3( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_bindTexture( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_bindTexture_dao_4( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_bindTexture_dao_2( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_bindTexture_dao_5( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_chooseContext( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_colorIndex( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_create__QGLContext( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_create( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_currentContext( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_deleteTexture( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_device( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_deviceIsPixmap( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_doneCurrent__QGLContext( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_doneCurrent( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_drawTexture_dao_2( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_drawTexture( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_format( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_generateFontDisplayLists( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_getProcAddress( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_initialized( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_isSharing( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_isValid( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_makeCurrent__QGLContext( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_makeCurrent( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_overlayTransparentColor( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_requestedFormat( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_reset( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_setDevice( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_setFormat( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_setInitialized( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_setTextureCacheLimit( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_setValid( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_setWindowCreated( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_swapBuffers__QGLContext( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_swapBuffers( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_textureCacheLimit( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLContext_windowCreated( DaoContext *_ctx, DValue *_p[], int _n );

static DaoFuncItem dao_QGLContext_Meths[] = 
{
  { dao_QGLContext_QGLContext_dao_2, "QGLContext( format : QGLFormat )=>QGLContext" },
  { dao_QGLContext_QGLContext, "QGLContext( format : QGLFormat, device : QPaintDevice )=>QGLContext" },
  { dao_QGLContext_areSharing, "areSharing( context1 : QGLContext, context2 : QGLContext )=>int" },
  { dao_QGLContext_bindTexture_dao_3, "bindTexture( self : QGLContext, image : QImage, target : int = GL_TEXTURE_2D, format : int = GL_RGBA )=>int" },
  { dao_QGLContext_bindTexture, "bindTexture( self : QGLContext, image : QImage, target : int, format : int, options : int )=>int" },
  { dao_QGLContext_bindTexture_dao_4, "bindTexture( self : QGLContext, pixmap : QPixmap, target : int = GL_TEXTURE_2D, format : int = GL_RGBA )=>int" },
  { dao_QGLContext_bindTexture_dao_2, "bindTexture( self : QGLContext, pixmap : QPixmap, target : int, format : int, options : int )=>int" },
  { dao_QGLContext_bindTexture_dao_5, "bindTexture( self : QGLContext, fileName : string )=>int" },
  { dao_QGLContext_chooseContext, "chooseContext( self : QGLContext, shareContext : QGLContext|null=null )=>int" },
  { dao_QGLContext_colorIndex, "colorIndex( self : QGLContext, c : QColor )=>int" },
  { dao_QGLContext_create, "create( self : QGLContext, shareContext : QGLContext|null=null )=>int" },
  { dao_QGLContext_currentContext, "currentContext(  )=>QGLContext" },
  { dao_QGLContext_deleteTexture, "deleteTexture( self : QGLContext, tx_id : int )" },
  { dao_QGLContext_device, "device( self : QGLContext )=>QPaintDevice" },
  { dao_QGLContext_deviceIsPixmap, "deviceIsPixmap( self : QGLContext )=>int" },
  { dao_QGLContext_doneCurrent, "doneCurrent( self : QGLContext )" },
  { dao_QGLContext_drawTexture_dao_2, "drawTexture( self : QGLContext, point : QPointF, textureId : int, textureTarget : int = GL_TEXTURE_2D )" },
  { dao_QGLContext_drawTexture, "drawTexture( self : QGLContext, target : QRectF, textureId : int, textureTarget : int = GL_TEXTURE_2D )" },
  { dao_QGLContext_format, "format( self : QGLContext )=>QGLFormat" },
  { dao_QGLContext_generateFontDisplayLists, "generateFontDisplayLists( self : QGLContext, fnt : QFont, listBase : int )" },
  { dao_QGLContext_getProcAddress, "getProcAddress( self : QGLContext, proc : string )=>cdata" },
  { dao_QGLContext_initialized, "initialized( self : QGLContext )=>int" },
  { dao_QGLContext_isSharing, "isSharing( self : QGLContext )=>int" },
  { dao_QGLContext_isValid, "isValid( self : QGLContext )=>int" },
  { dao_QGLContext_makeCurrent, "makeCurrent( self : QGLContext )" },
  { dao_QGLContext_overlayTransparentColor, "overlayTransparentColor( self : QGLContext )=>QColor" },
  { dao_QGLContext_requestedFormat, "requestedFormat( self : QGLContext )=>QGLFormat" },
  { dao_QGLContext_reset, "reset( self : QGLContext )" },
  { dao_QGLContext_setDevice, "setDevice( self : QGLContext, pDev : QPaintDevice )" },
  { dao_QGLContext_setFormat, "setFormat( self : QGLContext, format : QGLFormat )" },
  { dao_QGLContext_setInitialized, "setInitialized( self : QGLContext, on : int )" },
  { dao_QGLContext_setTextureCacheLimit, "setTextureCacheLimit( size : int )" },
  { dao_QGLContext_setValid, "setValid( self : QGLContext, valid : int )" },
  { dao_QGLContext_setWindowCreated, "setWindowCreated( self : QGLContext, on : int )" },
  { dao_QGLContext_swapBuffers, "swapBuffers( self : QGLContext )" },
  { dao_QGLContext_textureCacheLimit, "textureCacheLimit(  )=>int" },
  { dao_QGLContext_windowCreated, "windowCreated( self : QGLContext )=>int" },
  { NULL, NULL }
};
static void Dao_QGLContext_Delete( void *self )
{
	delete (QGLContext*) self;
}

static DaoTypeBase QGLContext_Typer = 
{ "QGLContext", NULL, 
  dao_QGLContext_Nums,
  dao_QGLContext_Meths, 
  { 0 },
  { 0 },
  Dao_QGLContext_Delete,
  NULL
};
DaoTypeBase DAO_DLL_QTOPENGL *dao_QGLContext_Typer = & QGLContext_Typer;
/* qgl.h */
static void dao_QGLContext_QGLContext_dao_2( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* format= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
	DaoCxx_QGLContext *_self = DaoCxx_QGLContext_New( *format );
	DaoContext_PutResult( _ctx, (DaoBase*) _self->cdata );
}
/* qgl.h */
static void dao_QGLContext_QGLContext( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* format= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  QPaintDevice* device= (QPaintDevice*) DValue_CastCData( _p[1], dao_QPaintDevice_Typer );
	DaoCxx_QGLContext *_self = DaoCxx_QGLContext_New( *format, device );
	DaoContext_PutResult( _ctx, (DaoBase*) _self->cdata );
}
/* qgl.h */
static void dao_QGLContext_areSharing( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* context1= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  QGLContext* context2= (QGLContext*) DValue_CastCData( _p[1], dao_QGLContext_Typer );
  bool _areSharing = QGLContext::areSharing( context1, context2 );
  DaoContext_PutInteger( _ctx, (int) _areSharing );
}
/* qgl.h */
static void dao_QGLContext_bindTexture_dao_3( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  QImage* image= (QImage*) DValue_CastCData( _p[1], dao_QImage_Typer );
  GLenum target= (GLenum) _p[2]->v.i;
  GLint format= (GLint) _p[3]->v.i;
  GLuint _bindTexture = self->QGLContext::bindTexture( *image, target, format );
  DaoContext_PutInteger( _ctx, (int) _bindTexture );
}
/* qgl.h */
static void dao_QGLContext_bindTexture( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  QImage* image= (QImage*) DValue_CastCData( _p[1], dao_QImage_Typer );
  GLenum target= (GLenum) _p[2]->v.i;
  GLint format= (GLint) _p[3]->v.i;
  QGLContext::BindOptions options= (QGLContext::BindOptions) _p[4]->v.i;
  GLuint _bindTexture = self->QGLContext::bindTexture( *image, target, format, options );
  DaoContext_PutInteger( _ctx, (int) _bindTexture );
}
/* qgl.h */
static void dao_QGLContext_bindTexture_dao_4( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  QPixmap* pixmap= (QPixmap*) DValue_CastCData( _p[1], dao_QPixmap_Typer );
  GLenum target= (GLenum) _p[2]->v.i;
  GLint format= (GLint) _p[3]->v.i;
  GLuint _bindTexture = self->QGLContext::bindTexture( *pixmap, target, format );
  DaoContext_PutInteger( _ctx, (int) _bindTexture );
}
/* qgl.h */
static void dao_QGLContext_bindTexture_dao_2( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  QPixmap* pixmap= (QPixmap*) DValue_CastCData( _p[1], dao_QPixmap_Typer );
  GLenum target= (GLenum) _p[2]->v.i;
  GLint format= (GLint) _p[3]->v.i;
  QGLContext::BindOptions options= (QGLContext::BindOptions) _p[4]->v.i;
  GLuint _bindTexture = self->QGLContext::bindTexture( *pixmap, target, format, options );
  DaoContext_PutInteger( _ctx, (int) _bindTexture );
}
/* qgl.h */
static void dao_QGLContext_bindTexture_dao_5( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  char *_mbs1 = DValue_GetMBString( _p[1] );
  QString fileName( _mbs1 );
  GLuint _bindTexture = self->QGLContext::bindTexture( fileName );
  DaoContext_PutInteger( _ctx, (int) _bindTexture );
}
/* qgl.h */
static void dao_QGLContext_chooseContext( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLContext *self = (DaoCxx_QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  QGLContext* shareContext= (QGLContext*) DValue_CastCData( _p[1], dao_QGLContext_Typer );
  bool _chooseContext = self->DaoWrap_chooseContext( shareContext );
  DaoContext_PutInteger( _ctx, (int) _chooseContext );
}
/* qgl.h */
static void dao_QGLContext_colorIndex( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLContext *self = (DaoCxx_QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  QColor* c= (QColor*) DValue_CastCData( _p[1], dao_QColor_Typer );
  uint _colorIndex = self->DaoWrap_colorIndex( *c );
  DaoContext_PutInteger( _ctx, (int) _colorIndex );
}
/* qgl.h */
static void dao_QGLContext_create__QGLContext( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  QGLContext* shareContext= (QGLContext*) DValue_CastCData( _p[1], dao_QGLContext_Typer );
  bool _create = self->QGLContext::create( shareContext );
  DaoContext_PutInteger( _ctx, (int) _create );
}
/* qgl.h */
static void dao_QGLContext_create( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( DaoCData_OwnData( _p[0]->v.cdata ) ){
    dao_QGLContext_create__QGLContext( _ctx, _p, _n );
    return;
  }
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  QGLContext* shareContext= (QGLContext*) DValue_CastCData( _p[1], dao_QGLContext_Typer );
  bool _create = self->create( shareContext );
  DaoContext_PutInteger( _ctx, (int) _create );
}
/* qgl.h */
static void dao_QGLContext_currentContext( DaoContext *_ctx, DValue *_p[], int _n )
{
  const QGLContext* _currentContext = QGLContext::currentContext(  );
  DaoContext_WrapCData( _ctx, (void*) _currentContext, dao_QGLContext_Typer );
}
/* qgl.h */
static void dao_QGLContext_deleteTexture( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  GLuint tx_id= (GLuint) _p[1]->v.i;
  self->QGLContext::deleteTexture( tx_id );
}
/* qgl.h */
static void dao_QGLContext_device( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  QPaintDevice* _device = self->QGLContext::device(  );
  DaoContext_WrapCData( _ctx, (void*) _device, dao_QPaintDevice_Typer );
}
/* qgl.h */
static void dao_QGLContext_deviceIsPixmap( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLContext *self = (DaoCxx_QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  bool _deviceIsPixmap = self->DaoWrap_deviceIsPixmap(  );
  DaoContext_PutInteger( _ctx, (int) _deviceIsPixmap );
}
/* qgl.h */
static void dao_QGLContext_doneCurrent__QGLContext( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  self->QGLContext::doneCurrent(  );
}
/* qgl.h */
static void dao_QGLContext_doneCurrent( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( DaoCData_OwnData( _p[0]->v.cdata ) ){
    dao_QGLContext_doneCurrent__QGLContext( _ctx, _p, _n );
    return;
  }
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  self->doneCurrent(  );
}
/* qgl.h */
static void dao_QGLContext_drawTexture_dao_2( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  QPointF* point= (QPointF*) DValue_CastCData( _p[1], dao_QPointF_Typer );
  GLuint textureId= (GLuint) _p[2]->v.i;
  GLenum textureTarget= (GLenum) _p[3]->v.i;
  self->QGLContext::drawTexture( *point, textureId, textureTarget );
}
/* qgl.h */
static void dao_QGLContext_drawTexture( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  QRectF* target= (QRectF*) DValue_CastCData( _p[1], dao_QRectF_Typer );
  GLuint textureId= (GLuint) _p[2]->v.i;
  GLenum textureTarget= (GLenum) _p[3]->v.i;
  self->QGLContext::drawTexture( *target, textureId, textureTarget );
}
/* qgl.h */
static void dao_QGLContext_format( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  QGLFormat _format = self->QGLContext::format(  );
  DaoContext_PutCData( _ctx, (void*)new QGLFormat( _format ), dao_QGLFormat_Typer );
}
/* qgl.h */
static void dao_QGLContext_generateFontDisplayLists( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLContext *self = (DaoCxx_QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  QFont* fnt= (QFont*) DValue_CastCData( _p[1], dao_QFont_Typer );
  int listBase= (int) _p[2]->v.i;
  self->DaoWrap_generateFontDisplayLists( *fnt, listBase );
}
/* qgl.h */
static void dao_QGLContext_getProcAddress( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  char *_mbs1 = DValue_GetMBString( _p[1] );
  QString proc( _mbs1 );
  void* _getProcAddress = self->QGLContext::getProcAddress( proc );
  DaoContext_PutCPointer( _ctx, (void*) _getProcAddress, 0 );
}
/* qgl.h */
static void dao_QGLContext_initialized( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLContext *self = (DaoCxx_QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  bool _initialized = self->DaoWrap_initialized(  );
  DaoContext_PutInteger( _ctx, (int) _initialized );
}
/* qgl.h */
static void dao_QGLContext_isSharing( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  bool _isSharing = self->QGLContext::isSharing(  );
  DaoContext_PutInteger( _ctx, (int) _isSharing );
}
/* qgl.h */
static void dao_QGLContext_isValid( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  bool _isValid = self->QGLContext::isValid(  );
  DaoContext_PutInteger( _ctx, (int) _isValid );
}
/* qgl.h */
static void dao_QGLContext_makeCurrent__QGLContext( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  self->QGLContext::makeCurrent(  );
}
/* qgl.h */
static void dao_QGLContext_makeCurrent( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( DaoCData_OwnData( _p[0]->v.cdata ) ){
    dao_QGLContext_makeCurrent__QGLContext( _ctx, _p, _n );
    return;
  }
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  self->makeCurrent(  );
}
/* qgl.h */
static void dao_QGLContext_overlayTransparentColor( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  QColor _overlayTransparentColor = self->QGLContext::overlayTransparentColor(  );
  DaoContext_PutCData( _ctx, (void*)new QColor( _overlayTransparentColor ), dao_QColor_Typer );
}
/* qgl.h */
static void dao_QGLContext_requestedFormat( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  QGLFormat _requestedFormat = self->QGLContext::requestedFormat(  );
  DaoContext_PutCData( _ctx, (void*)new QGLFormat( _requestedFormat ), dao_QGLFormat_Typer );
}
/* qgl.h */
static void dao_QGLContext_reset( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  self->QGLContext::reset(  );
}
/* qgl.h */
static void dao_QGLContext_setDevice( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLContext *self = (DaoCxx_QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  QPaintDevice* pDev= (QPaintDevice*) DValue_CastCData( _p[1], dao_QPaintDevice_Typer );
  self->DaoWrap_setDevice( pDev );
}
/* qgl.h */
static void dao_QGLContext_setFormat( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  QGLFormat* format= (QGLFormat*) DValue_CastCData( _p[1], dao_QGLFormat_Typer );
  self->QGLContext::setFormat( *format );
}
/* qgl.h */
static void dao_QGLContext_setInitialized( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLContext *self = (DaoCxx_QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  bool on= (bool) _p[1]->v.i;
  self->DaoWrap_setInitialized( on );
}
/* qgl.h */
static void dao_QGLContext_setTextureCacheLimit( DaoContext *_ctx, DValue *_p[], int _n )
{
  int size= (int) _p[0]->v.i;
  QGLContext::setTextureCacheLimit( size );
}
/* qgl.h */
static void dao_QGLContext_setValid( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLContext *self = (DaoCxx_QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  bool valid= (bool) _p[1]->v.i;
  self->DaoWrap_setValid( valid );
}
/* qgl.h */
static void dao_QGLContext_setWindowCreated( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLContext *self = (DaoCxx_QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  bool on= (bool) _p[1]->v.i;
  self->DaoWrap_setWindowCreated( on );
}
/* qgl.h */
static void dao_QGLContext_swapBuffers__QGLContext( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  self->QGLContext::swapBuffers(  );
}
/* qgl.h */
static void dao_QGLContext_swapBuffers( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( DaoCData_OwnData( _p[0]->v.cdata ) ){
    dao_QGLContext_swapBuffers__QGLContext( _ctx, _p, _n );
    return;
  }
  QGLContext* self= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  self->swapBuffers(  );
}
/* qgl.h */
static void dao_QGLContext_textureCacheLimit( DaoContext *_ctx, DValue *_p[], int _n )
{
  int _textureCacheLimit = QGLContext::textureCacheLimit(  );
  DaoContext_PutInteger( _ctx, (int) _textureCacheLimit );
}
/* qgl.h */
static void dao_QGLContext_windowCreated( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLContext *self = (DaoCxx_QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  bool _windowCreated = self->DaoWrap_windowCreated(  );
  DaoContext_PutInteger( _ctx, (int) _windowCreated );
}

/*  qgl.h */


static DaoNumItem dao_QGLFormat_Nums[] =
{
  { "NoProfile", DAO_INTEGER, QGLFormat::NoProfile },
  { "CoreProfile", DAO_INTEGER, QGLFormat::CoreProfile },
  { "CompatibilityProfile", DAO_INTEGER, QGLFormat::CompatibilityProfile },
  { "OpenGL_Version_None", DAO_INTEGER, QGLFormat::OpenGL_Version_None },
  { "OpenGL_Version_1_1", DAO_INTEGER, QGLFormat::OpenGL_Version_1_1 },
  { "OpenGL_Version_1_2", DAO_INTEGER, QGLFormat::OpenGL_Version_1_2 },
  { "OpenGL_Version_1_3", DAO_INTEGER, QGLFormat::OpenGL_Version_1_3 },
  { "OpenGL_Version_1_4", DAO_INTEGER, QGLFormat::OpenGL_Version_1_4 },
  { "OpenGL_Version_1_5", DAO_INTEGER, QGLFormat::OpenGL_Version_1_5 },
  { "OpenGL_Version_2_0", DAO_INTEGER, QGLFormat::OpenGL_Version_2_0 },
  { "OpenGL_Version_2_1", DAO_INTEGER, QGLFormat::OpenGL_Version_2_1 },
  { "OpenGL_ES_Common_Version_1_0", DAO_INTEGER, QGLFormat::OpenGL_ES_Common_Version_1_0 },
  { "OpenGL_ES_CommonLite_Version_1_0", DAO_INTEGER, QGLFormat::OpenGL_ES_CommonLite_Version_1_0 },
  { "OpenGL_ES_Common_Version_1_1", DAO_INTEGER, QGLFormat::OpenGL_ES_Common_Version_1_1 },
  { "OpenGL_ES_CommonLite_Version_1_1", DAO_INTEGER, QGLFormat::OpenGL_ES_CommonLite_Version_1_1 },
  { "OpenGL_ES_Version_2_0", DAO_INTEGER, QGLFormat::OpenGL_ES_Version_2_0 },
  { "OpenGL_Version_3_0", DAO_INTEGER, QGLFormat::OpenGL_Version_3_0 },
  { "OpenGL_Version_3_1", DAO_INTEGER, QGLFormat::OpenGL_Version_3_1 },
  { "OpenGL_Version_3_2", DAO_INTEGER, QGLFormat::OpenGL_Version_3_2 },
  { "OpenGL_Version_3_3", DAO_INTEGER, QGLFormat::OpenGL_Version_3_3 },
  { "OpenGL_Version_4_0", DAO_INTEGER, QGLFormat::OpenGL_Version_4_0 },
  { NULL, 0, 0 }
};
static void dao_QGLFormat_QGLFormat( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_QGLFormat_dao_2( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_QGLFormat_dao_3( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_accum( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_accumBufferSize( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_alpha( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_alphaBufferSize( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_blueBufferSize( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_defaultFormat( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_defaultOverlayFormat( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_depth( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_depthBufferSize( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_directRendering( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_doubleBuffer( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_greenBufferSize( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_hasOpenGL( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_hasOpenGLOverlays( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_hasOverlay( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_majorVersion( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_minorVersion( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_openGLVersionFlags( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_plane( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_profile( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_redBufferSize( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_rgba( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_sampleBuffers( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_samples( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setAccum( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setAccumBufferSize( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setAlpha( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setAlphaBufferSize( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setBlueBufferSize( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setDefaultFormat( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setDefaultOverlayFormat( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setDepth( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setDepthBufferSize( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setDirectRendering( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setDoubleBuffer( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setGreenBufferSize( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setOption( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setOverlay( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setPlane( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setProfile( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setRedBufferSize( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setRgba( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setSampleBuffers( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setSamples( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setStencil( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setStencilBufferSize( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setStereo( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setSwapInterval( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_setVersion( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_stencil( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_stencilBufferSize( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_stereo( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_swapInterval( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFormat_testOption( DaoContext *_ctx, DValue *_p[], int _n );

static DaoFuncItem dao_QGLFormat_Meths[] = 
{
  { dao_QGLFormat_QGLFormat, "QGLFormat(  )=>QGLFormat" },
  { dao_QGLFormat_QGLFormat_dao_2, "QGLFormat( options : int, plane : int = 0 )=>QGLFormat" },
  { dao_QGLFormat_QGLFormat_dao_3, "QGLFormat( other : QGLFormat )=>QGLFormat" },
  { dao_QGLFormat_accum, "accum( self : QGLFormat )=>int" },
  { dao_QGLFormat_accumBufferSize, "accumBufferSize( self : QGLFormat )=>int" },
  { dao_QGLFormat_alpha, "alpha( self : QGLFormat )=>int" },
  { dao_QGLFormat_alphaBufferSize, "alphaBufferSize( self : QGLFormat )=>int" },
  { dao_QGLFormat_blueBufferSize, "blueBufferSize( self : QGLFormat )=>int" },
  { dao_QGLFormat_defaultFormat, "defaultFormat(  )=>QGLFormat" },
  { dao_QGLFormat_defaultOverlayFormat, "defaultOverlayFormat(  )=>QGLFormat" },
  { dao_QGLFormat_depth, "depth( self : QGLFormat )=>int" },
  { dao_QGLFormat_depthBufferSize, "depthBufferSize( self : QGLFormat )=>int" },
  { dao_QGLFormat_directRendering, "directRendering( self : QGLFormat )=>int" },
  { dao_QGLFormat_doubleBuffer, "doubleBuffer( self : QGLFormat )=>int" },
  { dao_QGLFormat_greenBufferSize, "greenBufferSize( self : QGLFormat )=>int" },
  { dao_QGLFormat_hasOpenGL, "hasOpenGL(  )=>int" },
  { dao_QGLFormat_hasOpenGLOverlays, "hasOpenGLOverlays(  )=>int" },
  { dao_QGLFormat_hasOverlay, "hasOverlay( self : QGLFormat )=>int" },
  { dao_QGLFormat_majorVersion, "majorVersion( self : QGLFormat )=>int" },
  { dao_QGLFormat_minorVersion, "minorVersion( self : QGLFormat )=>int" },
  { dao_QGLFormat_openGLVersionFlags, "openGLVersionFlags(  )=>int" },
  { dao_QGLFormat_plane, "plane( self : QGLFormat )=>int" },
  { dao_QGLFormat_profile, "profile( self : QGLFormat )=>int" },
  { dao_QGLFormat_redBufferSize, "redBufferSize( self : QGLFormat )=>int" },
  { dao_QGLFormat_rgba, "rgba( self : QGLFormat )=>int" },
  { dao_QGLFormat_sampleBuffers, "sampleBuffers( self : QGLFormat )=>int" },
  { dao_QGLFormat_samples, "samples( self : QGLFormat )=>int" },
  { dao_QGLFormat_setAccum, "setAccum( self : QGLFormat, enable : int )" },
  { dao_QGLFormat_setAccumBufferSize, "setAccumBufferSize( self : QGLFormat, size : int )" },
  { dao_QGLFormat_setAlpha, "setAlpha( self : QGLFormat, enable : int )" },
  { dao_QGLFormat_setAlphaBufferSize, "setAlphaBufferSize( self : QGLFormat, size : int )" },
  { dao_QGLFormat_setBlueBufferSize, "setBlueBufferSize( self : QGLFormat, size : int )" },
  { dao_QGLFormat_setDefaultFormat, "setDefaultFormat( f : QGLFormat )" },
  { dao_QGLFormat_setDefaultOverlayFormat, "setDefaultOverlayFormat( f : QGLFormat )" },
  { dao_QGLFormat_setDepth, "setDepth( self : QGLFormat, enable : int )" },
  { dao_QGLFormat_setDepthBufferSize, "setDepthBufferSize( self : QGLFormat, size : int )" },
  { dao_QGLFormat_setDirectRendering, "setDirectRendering( self : QGLFormat, enable : int )" },
  { dao_QGLFormat_setDoubleBuffer, "setDoubleBuffer( self : QGLFormat, enable : int )" },
  { dao_QGLFormat_setGreenBufferSize, "setGreenBufferSize( self : QGLFormat, size : int )" },
  { dao_QGLFormat_setOption, "setOption( self : QGLFormat, opt : int )" },
  { dao_QGLFormat_setOverlay, "setOverlay( self : QGLFormat, enable : int )" },
  { dao_QGLFormat_setPlane, "setPlane( self : QGLFormat, plane : int )" },
  { dao_QGLFormat_setProfile, "setProfile( self : QGLFormat, profile : int )" },
  { dao_QGLFormat_setRedBufferSize, "setRedBufferSize( self : QGLFormat, size : int )" },
  { dao_QGLFormat_setRgba, "setRgba( self : QGLFormat, enable : int )" },
  { dao_QGLFormat_setSampleBuffers, "setSampleBuffers( self : QGLFormat, enable : int )" },
  { dao_QGLFormat_setSamples, "setSamples( self : QGLFormat, numSamples : int )" },
  { dao_QGLFormat_setStencil, "setStencil( self : QGLFormat, enable : int )" },
  { dao_QGLFormat_setStencilBufferSize, "setStencilBufferSize( self : QGLFormat, size : int )" },
  { dao_QGLFormat_setStereo, "setStereo( self : QGLFormat, enable : int )" },
  { dao_QGLFormat_setSwapInterval, "setSwapInterval( self : QGLFormat, interval : int )" },
  { dao_QGLFormat_setVersion, "setVersion( self : QGLFormat, major : int, minor : int )" },
  { dao_QGLFormat_stencil, "stencil( self : QGLFormat )=>int" },
  { dao_QGLFormat_stencilBufferSize, "stencilBufferSize( self : QGLFormat )=>int" },
  { dao_QGLFormat_stereo, "stereo( self : QGLFormat )=>int" },
  { dao_QGLFormat_swapInterval, "swapInterval( self : QGLFormat )=>int" },
  { dao_QGLFormat_testOption, "testOption( self : QGLFormat, opt : int )=>int" },
  { NULL, NULL }
};
static void Dao_QGLFormat_Delete( void *self )
{
	delete (QGLFormat*) self;
}

static DaoTypeBase QGLFormat_Typer = 
{ "QGLFormat", NULL, 
  dao_QGLFormat_Nums,
  dao_QGLFormat_Meths, 
  { 0 },
  { 0 },
  Dao_QGLFormat_Delete,
  NULL
};
DaoTypeBase DAO_DLL_QTOPENGL *dao_QGLFormat_Typer = & QGLFormat_Typer;
/* qgl.h */
static void dao_QGLFormat_QGLFormat( DaoContext *_ctx, DValue *_p[], int _n )
{
	QGLFormat *_self = Dao_QGLFormat_New(  );
	DaoContext_PutCData( _ctx, _self, dao_QGLFormat_Typer );
}
/* qgl.h */
static void dao_QGLFormat_QGLFormat_dao_2( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGL::FormatOptions options= (QGL::FormatOptions) _p[0]->v.i;
  int plane= (int) _p[1]->v.i;
	QGLFormat *_self = Dao_QGLFormat_New( options, plane );
	DaoContext_PutCData( _ctx, _self, dao_QGLFormat_Typer );
}
/* qgl.h */
static void dao_QGLFormat_QGLFormat_dao_3( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* other= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
	QGLFormat *_self = Dao_QGLFormat_New( *other );
	DaoContext_PutCData( _ctx, _self, dao_QGLFormat_Typer );
}
/* qgl.h */
static void dao_QGLFormat_accum( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  bool _accum = self->QGLFormat::accum(  );
  DaoContext_PutInteger( _ctx, (int) _accum );
}
/* qgl.h */
static void dao_QGLFormat_accumBufferSize( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int _accumBufferSize = self->QGLFormat::accumBufferSize(  );
  DaoContext_PutInteger( _ctx, (int) _accumBufferSize );
}
/* qgl.h */
static void dao_QGLFormat_alpha( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  bool _alpha = self->QGLFormat::alpha(  );
  DaoContext_PutInteger( _ctx, (int) _alpha );
}
/* qgl.h */
static void dao_QGLFormat_alphaBufferSize( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int _alphaBufferSize = self->QGLFormat::alphaBufferSize(  );
  DaoContext_PutInteger( _ctx, (int) _alphaBufferSize );
}
/* qgl.h */
static void dao_QGLFormat_blueBufferSize( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int _blueBufferSize = self->QGLFormat::blueBufferSize(  );
  DaoContext_PutInteger( _ctx, (int) _blueBufferSize );
}
/* qgl.h */
static void dao_QGLFormat_defaultFormat( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat _defaultFormat = QGLFormat::defaultFormat(  );
  DaoContext_PutCData( _ctx, (void*)new QGLFormat( _defaultFormat ), dao_QGLFormat_Typer );
}
/* qgl.h */
static void dao_QGLFormat_defaultOverlayFormat( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat _defaultOverlayFormat = QGLFormat::defaultOverlayFormat(  );
  DaoContext_PutCData( _ctx, (void*)new QGLFormat( _defaultOverlayFormat ), dao_QGLFormat_Typer );
}
/* qgl.h */
static void dao_QGLFormat_depth( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  bool _depth = self->QGLFormat::depth(  );
  DaoContext_PutInteger( _ctx, (int) _depth );
}
/* qgl.h */
static void dao_QGLFormat_depthBufferSize( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int _depthBufferSize = self->QGLFormat::depthBufferSize(  );
  DaoContext_PutInteger( _ctx, (int) _depthBufferSize );
}
/* qgl.h */
static void dao_QGLFormat_directRendering( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  bool _directRendering = self->QGLFormat::directRendering(  );
  DaoContext_PutInteger( _ctx, (int) _directRendering );
}
/* qgl.h */
static void dao_QGLFormat_doubleBuffer( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  bool _doubleBuffer = self->QGLFormat::doubleBuffer(  );
  DaoContext_PutInteger( _ctx, (int) _doubleBuffer );
}
/* qgl.h */
static void dao_QGLFormat_greenBufferSize( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int _greenBufferSize = self->QGLFormat::greenBufferSize(  );
  DaoContext_PutInteger( _ctx, (int) _greenBufferSize );
}
/* qgl.h */
static void dao_QGLFormat_hasOpenGL( DaoContext *_ctx, DValue *_p[], int _n )
{
  bool _hasOpenGL = QGLFormat::hasOpenGL(  );
  DaoContext_PutInteger( _ctx, (int) _hasOpenGL );
}
/* qgl.h */
static void dao_QGLFormat_hasOpenGLOverlays( DaoContext *_ctx, DValue *_p[], int _n )
{
  bool _hasOpenGLOverlays = QGLFormat::hasOpenGLOverlays(  );
  DaoContext_PutInteger( _ctx, (int) _hasOpenGLOverlays );
}
/* qgl.h */
static void dao_QGLFormat_hasOverlay( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  bool _hasOverlay = self->QGLFormat::hasOverlay(  );
  DaoContext_PutInteger( _ctx, (int) _hasOverlay );
}
/* qgl.h */
static void dao_QGLFormat_majorVersion( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int _majorVersion = self->QGLFormat::majorVersion(  );
  DaoContext_PutInteger( _ctx, (int) _majorVersion );
}
/* qgl.h */
static void dao_QGLFormat_minorVersion( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int _minorVersion = self->QGLFormat::minorVersion(  );
  DaoContext_PutInteger( _ctx, (int) _minorVersion );
}
/* qgl.h */
static void dao_QGLFormat_openGLVersionFlags( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat::OpenGLVersionFlags _openGLVersionFlags = QGLFormat::openGLVersionFlags(  );
  DaoContext_PutInteger( _ctx, (int) _openGLVersionFlags );
}
/* qgl.h */
static void dao_QGLFormat_plane( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int _plane = self->QGLFormat::plane(  );
  DaoContext_PutInteger( _ctx, (int) _plane );
}
/* qgl.h */
static void dao_QGLFormat_profile( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  QGLFormat::OpenGLContextProfile _profile = self->QGLFormat::profile(  );
  DaoContext_PutInteger( _ctx, (int) _profile );
}
/* qgl.h */
static void dao_QGLFormat_redBufferSize( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int _redBufferSize = self->QGLFormat::redBufferSize(  );
  DaoContext_PutInteger( _ctx, (int) _redBufferSize );
}
/* qgl.h */
static void dao_QGLFormat_rgba( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  bool _rgba = self->QGLFormat::rgba(  );
  DaoContext_PutInteger( _ctx, (int) _rgba );
}
/* qgl.h */
static void dao_QGLFormat_sampleBuffers( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  bool _sampleBuffers = self->QGLFormat::sampleBuffers(  );
  DaoContext_PutInteger( _ctx, (int) _sampleBuffers );
}
/* qgl.h */
static void dao_QGLFormat_samples( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int _samples = self->QGLFormat::samples(  );
  DaoContext_PutInteger( _ctx, (int) _samples );
}
/* qgl.h */
static void dao_QGLFormat_setAccum( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  bool enable= (bool) _p[1]->v.i;
  self->QGLFormat::setAccum( enable );
}
/* qgl.h */
static void dao_QGLFormat_setAccumBufferSize( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int size= (int) _p[1]->v.i;
  self->QGLFormat::setAccumBufferSize( size );
}
/* qgl.h */
static void dao_QGLFormat_setAlpha( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  bool enable= (bool) _p[1]->v.i;
  self->QGLFormat::setAlpha( enable );
}
/* qgl.h */
static void dao_QGLFormat_setAlphaBufferSize( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int size= (int) _p[1]->v.i;
  self->QGLFormat::setAlphaBufferSize( size );
}
/* qgl.h */
static void dao_QGLFormat_setBlueBufferSize( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int size= (int) _p[1]->v.i;
  self->QGLFormat::setBlueBufferSize( size );
}
/* qgl.h */
static void dao_QGLFormat_setDefaultFormat( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* f= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  QGLFormat::setDefaultFormat( *f );
}
/* qgl.h */
static void dao_QGLFormat_setDefaultOverlayFormat( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* f= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  QGLFormat::setDefaultOverlayFormat( *f );
}
/* qgl.h */
static void dao_QGLFormat_setDepth( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  bool enable= (bool) _p[1]->v.i;
  self->QGLFormat::setDepth( enable );
}
/* qgl.h */
static void dao_QGLFormat_setDepthBufferSize( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int size= (int) _p[1]->v.i;
  self->QGLFormat::setDepthBufferSize( size );
}
/* qgl.h */
static void dao_QGLFormat_setDirectRendering( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  bool enable= (bool) _p[1]->v.i;
  self->QGLFormat::setDirectRendering( enable );
}
/* qgl.h */
static void dao_QGLFormat_setDoubleBuffer( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  bool enable= (bool) _p[1]->v.i;
  self->QGLFormat::setDoubleBuffer( enable );
}
/* qgl.h */
static void dao_QGLFormat_setGreenBufferSize( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int size= (int) _p[1]->v.i;
  self->QGLFormat::setGreenBufferSize( size );
}
/* qgl.h */
static void dao_QGLFormat_setOption( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  QGL::FormatOptions opt= (QGL::FormatOptions) _p[1]->v.i;
  self->QGLFormat::setOption( opt );
}
/* qgl.h */
static void dao_QGLFormat_setOverlay( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  bool enable= (bool) _p[1]->v.i;
  self->QGLFormat::setOverlay( enable );
}
/* qgl.h */
static void dao_QGLFormat_setPlane( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int plane= (int) _p[1]->v.i;
  self->QGLFormat::setPlane( plane );
}
/* qgl.h */
static void dao_QGLFormat_setProfile( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  QGLFormat::OpenGLContextProfile profile= (QGLFormat::OpenGLContextProfile) _p[1]->v.i;
  self->QGLFormat::setProfile( profile );
}
/* qgl.h */
static void dao_QGLFormat_setRedBufferSize( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int size= (int) _p[1]->v.i;
  self->QGLFormat::setRedBufferSize( size );
}
/* qgl.h */
static void dao_QGLFormat_setRgba( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  bool enable= (bool) _p[1]->v.i;
  self->QGLFormat::setRgba( enable );
}
/* qgl.h */
static void dao_QGLFormat_setSampleBuffers( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  bool enable= (bool) _p[1]->v.i;
  self->QGLFormat::setSampleBuffers( enable );
}
/* qgl.h */
static void dao_QGLFormat_setSamples( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int numSamples= (int) _p[1]->v.i;
  self->QGLFormat::setSamples( numSamples );
}
/* qgl.h */
static void dao_QGLFormat_setStencil( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  bool enable= (bool) _p[1]->v.i;
  self->QGLFormat::setStencil( enable );
}
/* qgl.h */
static void dao_QGLFormat_setStencilBufferSize( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int size= (int) _p[1]->v.i;
  self->QGLFormat::setStencilBufferSize( size );
}
/* qgl.h */
static void dao_QGLFormat_setStereo( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  bool enable= (bool) _p[1]->v.i;
  self->QGLFormat::setStereo( enable );
}
/* qgl.h */
static void dao_QGLFormat_setSwapInterval( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int interval= (int) _p[1]->v.i;
  self->QGLFormat::setSwapInterval( interval );
}
/* qgl.h */
static void dao_QGLFormat_setVersion( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int major= (int) _p[1]->v.i;
  int minor= (int) _p[2]->v.i;
  self->QGLFormat::setVersion( major, minor );
}
/* qgl.h */
static void dao_QGLFormat_stencil( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  bool _stencil = self->QGLFormat::stencil(  );
  DaoContext_PutInteger( _ctx, (int) _stencil );
}
/* qgl.h */
static void dao_QGLFormat_stencilBufferSize( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int _stencilBufferSize = self->QGLFormat::stencilBufferSize(  );
  DaoContext_PutInteger( _ctx, (int) _stencilBufferSize );
}
/* qgl.h */
static void dao_QGLFormat_stereo( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  bool _stereo = self->QGLFormat::stereo(  );
  DaoContext_PutInteger( _ctx, (int) _stereo );
}
/* qgl.h */
static void dao_QGLFormat_swapInterval( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  int _swapInterval = self->QGLFormat::swapInterval(  );
  DaoContext_PutInteger( _ctx, (int) _swapInterval );
}
/* qgl.h */
static void dao_QGLFormat_testOption( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* self= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  QGL::FormatOptions opt= (QGL::FormatOptions) _p[1]->v.i;
  bool _testOption = self->QGLFormat::testOption( opt );
  DaoContext_PutInteger( _ctx, (int) _testOption );
}

/*  qglframebufferobject.h */


static DaoNumItem dao_QGLFramebufferObject_Nums[] =
{
  { "NoAttachment", DAO_INTEGER, QGLFramebufferObject::NoAttachment },
  { "CombinedDepthStencil", DAO_INTEGER, QGLFramebufferObject::CombinedDepthStencil },
  { "Depth", DAO_INTEGER, QGLFramebufferObject::Depth },
  { NULL, 0, 0 }
};
static void dao_QGLFramebufferObject_QGLFramebufferObject( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_QGLFramebufferObject_dao_3( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_QGLFramebufferObject_dao_2( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_QGLFramebufferObject_dao_4( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_attachment( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_bind( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_bindDefault( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_devType( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_drawTexture_dao_2( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_drawTexture( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_format( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_handle( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_hasOpenGLFramebufferBlit( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_hasOpenGLFramebufferObjects( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_isBound( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_isValid( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_metric( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_paintEngine( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_release( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_size( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_texture( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObject_toImage( DaoContext *_ctx, DValue *_p[], int _n );

static DaoFuncItem dao_QGLFramebufferObject_Meths[] = 
{
  { dao_QGLFramebufferObject_QGLFramebufferObject, "QGLFramebufferObject( size : QSize, target : int = GL_TEXTURE_2D )=>QGLFramebufferObject" },
  { dao_QGLFramebufferObject_QGLFramebufferObject_dao_3, "QGLFramebufferObject( size : QSize, format : QGLFramebufferObjectFormat )=>QGLFramebufferObject" },
  { dao_QGLFramebufferObject_QGLFramebufferObject_dao_2, "QGLFramebufferObject( width : int, height : int, target : int = GL_TEXTURE_2D )=>QGLFramebufferObject" },
  { dao_QGLFramebufferObject_QGLFramebufferObject_dao_4, "QGLFramebufferObject( width : int, height : int, format : QGLFramebufferObjectFormat )=>QGLFramebufferObject" },
  { dao_QGLFramebufferObject_attachment, "attachment( self : QGLFramebufferObject )=>int" },
  { dao_QGLFramebufferObject_bind, "bind( self : QGLFramebufferObject )=>int" },
  { dao_QGLFramebufferObject_bindDefault, "bindDefault(  )=>int" },
  { dao_QGLFramebufferObject_devType, "devType( self : QGLFramebufferObject )=>int" },
  { dao_QGLFramebufferObject_drawTexture_dao_2, "drawTexture( self : QGLFramebufferObject, point : QPointF, textureId : int, textureTarget : int = GL_TEXTURE_2D )" },
  { dao_QGLFramebufferObject_drawTexture, "drawTexture( self : QGLFramebufferObject, target : QRectF, textureId : int, textureTarget : int = GL_TEXTURE_2D )" },
  { dao_QGLFramebufferObject_format, "format( self : QGLFramebufferObject )=>QGLFramebufferObjectFormat" },
  { dao_QGLFramebufferObject_handle, "handle( self : QGLFramebufferObject )=>int" },
  { dao_QGLFramebufferObject_hasOpenGLFramebufferBlit, "hasOpenGLFramebufferBlit(  )=>int" },
  { dao_QGLFramebufferObject_hasOpenGLFramebufferObjects, "hasOpenGLFramebufferObjects(  )=>int" },
  { dao_QGLFramebufferObject_isBound, "isBound( self : QGLFramebufferObject )=>int" },
  { dao_QGLFramebufferObject_isValid, "isValid( self : QGLFramebufferObject )=>int" },
  { dao_QGLFramebufferObject_metric, "metric( self : QGLFramebufferObject, metric : int )=>int" },
  { dao_QGLFramebufferObject_paintEngine, "paintEngine( self : QGLFramebufferObject )=>QPaintEngine" },
  { dao_QGLFramebufferObject_release, "release( self : QGLFramebufferObject )=>int" },
  { dao_QGLFramebufferObject_size, "size( self : QGLFramebufferObject )=>QSize" },
  { dao_QGLFramebufferObject_texture, "texture( self : QGLFramebufferObject )=>int" },
  { dao_QGLFramebufferObject_toImage, "toImage( self : QGLFramebufferObject )=>QImage" },
  { NULL, NULL }
};
static void Dao_QGLFramebufferObject_Delete( void *self )
{
	delete (QGLFramebufferObject*) self;
}
void* dao_cast_QGLFramebufferObject_to_QPaintDevice( void *data )
{
	return (QPaintDevice*)(QGLFramebufferObject*)data;
}

static DaoTypeBase QGLFramebufferObject_Typer = 
{ "QGLFramebufferObject", NULL, 
  dao_QGLFramebufferObject_Nums,
  dao_QGLFramebufferObject_Meths, 
  { dao_QPaintDevice_Typer, 0 },
  { dao_cast_QGLFramebufferObject_to_QPaintDevice,0 },
  Dao_QGLFramebufferObject_Delete,
  NULL
};
DaoTypeBase DAO_DLL_QTOPENGL *dao_QGLFramebufferObject_Typer = & QGLFramebufferObject_Typer;
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_QGLFramebufferObject( DaoContext *_ctx, DValue *_p[], int _n )
{
  QSize* size= (QSize*) DValue_CastCData( _p[0], dao_QSize_Typer );
  GLenum target= (GLenum) _p[1]->v.i;
	DaoCxx_QGLFramebufferObject *_self = DaoCxx_QGLFramebufferObject_New( *size, target );
	DaoContext_PutResult( _ctx, (DaoBase*) _self->cdata );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_QGLFramebufferObject_dao_3( DaoContext *_ctx, DValue *_p[], int _n )
{
  QSize* size= (QSize*) DValue_CastCData( _p[0], dao_QSize_Typer );
  QGLFramebufferObjectFormat* format= (QGLFramebufferObjectFormat*) DValue_CastCData( _p[1], dao_QGLFramebufferObjectFormat_Typer );
	DaoCxx_QGLFramebufferObject *_self = DaoCxx_QGLFramebufferObject_New( *size, *format );
	DaoContext_PutResult( _ctx, (DaoBase*) _self->cdata );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_QGLFramebufferObject_dao_2( DaoContext *_ctx, DValue *_p[], int _n )
{
  int width= (int) _p[0]->v.i;
  int height= (int) _p[1]->v.i;
  GLenum target= (GLenum) _p[2]->v.i;
	DaoCxx_QGLFramebufferObject *_self = DaoCxx_QGLFramebufferObject_New( width, height, target );
	DaoContext_PutResult( _ctx, (DaoBase*) _self->cdata );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_QGLFramebufferObject_dao_4( DaoContext *_ctx, DValue *_p[], int _n )
{
  int width= (int) _p[0]->v.i;
  int height= (int) _p[1]->v.i;
  QGLFramebufferObjectFormat* format= (QGLFramebufferObjectFormat*) DValue_CastCData( _p[2], dao_QGLFramebufferObjectFormat_Typer );
	DaoCxx_QGLFramebufferObject *_self = DaoCxx_QGLFramebufferObject_New( width, height, *format );
	DaoContext_PutResult( _ctx, (DaoBase*) _self->cdata );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_attachment( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObject* self= (QGLFramebufferObject*) DValue_CastCData( _p[0], dao_QGLFramebufferObject_Typer );
  QGLFramebufferObject::Attachment _attachment = self->QGLFramebufferObject::attachment(  );
  DaoContext_PutInteger( _ctx, (int) _attachment );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_bind( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObject* self= (QGLFramebufferObject*) DValue_CastCData( _p[0], dao_QGLFramebufferObject_Typer );
  bool _bind = self->QGLFramebufferObject::bind(  );
  DaoContext_PutInteger( _ctx, (int) _bind );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_bindDefault( DaoContext *_ctx, DValue *_p[], int _n )
{
  bool _bindDefault = QGLFramebufferObject::bindDefault(  );
  DaoContext_PutInteger( _ctx, (int) _bindDefault );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_devType( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLFramebufferObject *self = (DaoCxx_QGLFramebufferObject*) DValue_CastCData( _p[0], dao_QGLFramebufferObject_Typer );
  int _devType = self->DaoWrap_devType(  );
  DaoContext_PutInteger( _ctx, (int) _devType );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_drawTexture_dao_2( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObject* self= (QGLFramebufferObject*) DValue_CastCData( _p[0], dao_QGLFramebufferObject_Typer );
  QPointF* point= (QPointF*) DValue_CastCData( _p[1], dao_QPointF_Typer );
  GLuint textureId= (GLuint) _p[2]->v.i;
  GLenum textureTarget= (GLenum) _p[3]->v.i;
  self->QGLFramebufferObject::drawTexture( *point, textureId, textureTarget );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_drawTexture( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObject* self= (QGLFramebufferObject*) DValue_CastCData( _p[0], dao_QGLFramebufferObject_Typer );
  QRectF* target= (QRectF*) DValue_CastCData( _p[1], dao_QRectF_Typer );
  GLuint textureId= (GLuint) _p[2]->v.i;
  GLenum textureTarget= (GLenum) _p[3]->v.i;
  self->QGLFramebufferObject::drawTexture( *target, textureId, textureTarget );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_format( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObject* self= (QGLFramebufferObject*) DValue_CastCData( _p[0], dao_QGLFramebufferObject_Typer );
  QGLFramebufferObjectFormat _format = self->QGLFramebufferObject::format(  );
  DaoContext_PutCData( _ctx, (void*)new QGLFramebufferObjectFormat( _format ), dao_QGLFramebufferObjectFormat_Typer );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_handle( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObject* self= (QGLFramebufferObject*) DValue_CastCData( _p[0], dao_QGLFramebufferObject_Typer );
  GLuint _handle = self->QGLFramebufferObject::handle(  );
  DaoContext_PutInteger( _ctx, (int) _handle );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_hasOpenGLFramebufferBlit( DaoContext *_ctx, DValue *_p[], int _n )
{
  bool _hasOpenGLFramebufferBlit = QGLFramebufferObject::hasOpenGLFramebufferBlit(  );
  DaoContext_PutInteger( _ctx, (int) _hasOpenGLFramebufferBlit );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_hasOpenGLFramebufferObjects( DaoContext *_ctx, DValue *_p[], int _n )
{
  bool _hasOpenGLFramebufferObjects = QGLFramebufferObject::hasOpenGLFramebufferObjects(  );
  DaoContext_PutInteger( _ctx, (int) _hasOpenGLFramebufferObjects );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_isBound( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObject* self= (QGLFramebufferObject*) DValue_CastCData( _p[0], dao_QGLFramebufferObject_Typer );
  bool _isBound = self->QGLFramebufferObject::isBound(  );
  DaoContext_PutInteger( _ctx, (int) _isBound );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_isValid( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObject* self= (QGLFramebufferObject*) DValue_CastCData( _p[0], dao_QGLFramebufferObject_Typer );
  bool _isValid = self->QGLFramebufferObject::isValid(  );
  DaoContext_PutInteger( _ctx, (int) _isValid );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_metric( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLFramebufferObject *self = (DaoCxx_QGLFramebufferObject*) DValue_CastCData( _p[0], dao_QGLFramebufferObject_Typer );
  QPaintDevice::PaintDeviceMetric metric= (QPaintDevice::PaintDeviceMetric) _p[1]->v.i;
  int _metric = self->DaoWrap_metric( metric );
  DaoContext_PutInteger( _ctx, (int) _metric );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_paintEngine( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObject* self= (QGLFramebufferObject*) DValue_CastCData( _p[0], dao_QGLFramebufferObject_Typer );
  QPaintEngine* _paintEngine = self->QGLFramebufferObject::paintEngine(  );
  DaoContext_WrapCData( _ctx, (void*) _paintEngine, dao_QPaintEngine_Typer );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_release( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObject* self= (QGLFramebufferObject*) DValue_CastCData( _p[0], dao_QGLFramebufferObject_Typer );
  bool _release = self->QGLFramebufferObject::release(  );
  DaoContext_PutInteger( _ctx, (int) _release );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_size( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObject* self= (QGLFramebufferObject*) DValue_CastCData( _p[0], dao_QGLFramebufferObject_Typer );
  QSize _size = self->QGLFramebufferObject::size(  );
  DaoContext_PutCData( _ctx, (void*)new QSize( _size ), dao_QSize_Typer );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_texture( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObject* self= (QGLFramebufferObject*) DValue_CastCData( _p[0], dao_QGLFramebufferObject_Typer );
  GLuint _texture = self->QGLFramebufferObject::texture(  );
  DaoContext_PutInteger( _ctx, (int) _texture );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObject_toImage( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObject* self= (QGLFramebufferObject*) DValue_CastCData( _p[0], dao_QGLFramebufferObject_Typer );
  QImage _toImage = self->QGLFramebufferObject::toImage(  );
  DaoContext_PutCData( _ctx, (void*)new QImage( _toImage ), dao_QImage_Typer );
}

/*  qglframebufferobject.h */


static DaoNumItem dao_QGLFramebufferObjectFormat_Nums[] =
{
  { NULL, 0, 0 }
};
static void dao_QGLFramebufferObjectFormat_QGLFramebufferObjectFormat( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObjectFormat_QGLFramebufferObjectFormat_dao_2( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObjectFormat_attachment( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObjectFormat_internalTextureFormat( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObjectFormat_samples( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObjectFormat_setAttachment( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObjectFormat_setInternalTextureFormat( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObjectFormat_setSamples( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObjectFormat_setTextureTarget( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLFramebufferObjectFormat_textureTarget( DaoContext *_ctx, DValue *_p[], int _n );

static DaoFuncItem dao_QGLFramebufferObjectFormat_Meths[] = 
{
  { dao_QGLFramebufferObjectFormat_QGLFramebufferObjectFormat, "QGLFramebufferObjectFormat(  )=>QGLFramebufferObjectFormat" },
  { dao_QGLFramebufferObjectFormat_QGLFramebufferObjectFormat_dao_2, "QGLFramebufferObjectFormat( other : QGLFramebufferObjectFormat )=>QGLFramebufferObjectFormat" },
  { dao_QGLFramebufferObjectFormat_attachment, "attachment( self : QGLFramebufferObjectFormat )=>int" },
  { dao_QGLFramebufferObjectFormat_internalTextureFormat, "internalTextureFormat( self : QGLFramebufferObjectFormat )=>int" },
  { dao_QGLFramebufferObjectFormat_samples, "samples( self : QGLFramebufferObjectFormat )=>int" },
  { dao_QGLFramebufferObjectFormat_setAttachment, "setAttachment( self : QGLFramebufferObjectFormat, attachment : int )" },
  { dao_QGLFramebufferObjectFormat_setInternalTextureFormat, "setInternalTextureFormat( self : QGLFramebufferObjectFormat, internalTextureFormat : int )" },
  { dao_QGLFramebufferObjectFormat_setSamples, "setSamples( self : QGLFramebufferObjectFormat, samples : int )" },
  { dao_QGLFramebufferObjectFormat_setTextureTarget, "setTextureTarget( self : QGLFramebufferObjectFormat, target : int )" },
  { dao_QGLFramebufferObjectFormat_textureTarget, "textureTarget( self : QGLFramebufferObjectFormat )=>int" },
  { NULL, NULL }
};
static void Dao_QGLFramebufferObjectFormat_Delete( void *self )
{
	delete (QGLFramebufferObjectFormat*) self;
}

static DaoTypeBase QGLFramebufferObjectFormat_Typer = 
{ "QGLFramebufferObjectFormat", NULL, 
  dao_QGLFramebufferObjectFormat_Nums,
  dao_QGLFramebufferObjectFormat_Meths, 
  { 0 },
  { 0 },
  Dao_QGLFramebufferObjectFormat_Delete,
  NULL
};
DaoTypeBase DAO_DLL_QTOPENGL *dao_QGLFramebufferObjectFormat_Typer = & QGLFramebufferObjectFormat_Typer;
/* qglframebufferobject.h */
static void dao_QGLFramebufferObjectFormat_QGLFramebufferObjectFormat( DaoContext *_ctx, DValue *_p[], int _n )
{
	QGLFramebufferObjectFormat *_self = Dao_QGLFramebufferObjectFormat_New(  );
	DaoContext_PutCData( _ctx, _self, dao_QGLFramebufferObjectFormat_Typer );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObjectFormat_QGLFramebufferObjectFormat_dao_2( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObjectFormat* other= (QGLFramebufferObjectFormat*) DValue_CastCData( _p[0], dao_QGLFramebufferObjectFormat_Typer );
	QGLFramebufferObjectFormat *_self = Dao_QGLFramebufferObjectFormat_New( *other );
	DaoContext_PutCData( _ctx, _self, dao_QGLFramebufferObjectFormat_Typer );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObjectFormat_attachment( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObjectFormat* self= (QGLFramebufferObjectFormat*) DValue_CastCData( _p[0], dao_QGLFramebufferObjectFormat_Typer );
  QGLFramebufferObject::Attachment _attachment = self->QGLFramebufferObjectFormat::attachment(  );
  DaoContext_PutInteger( _ctx, (int) _attachment );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObjectFormat_internalTextureFormat( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObjectFormat* self= (QGLFramebufferObjectFormat*) DValue_CastCData( _p[0], dao_QGLFramebufferObjectFormat_Typer );
  GLenum _internalTextureFormat = self->QGLFramebufferObjectFormat::internalTextureFormat(  );
  DaoContext_PutInteger( _ctx, (int) _internalTextureFormat );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObjectFormat_samples( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObjectFormat* self= (QGLFramebufferObjectFormat*) DValue_CastCData( _p[0], dao_QGLFramebufferObjectFormat_Typer );
  int _samples = self->QGLFramebufferObjectFormat::samples(  );
  DaoContext_PutInteger( _ctx, (int) _samples );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObjectFormat_setAttachment( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObjectFormat* self= (QGLFramebufferObjectFormat*) DValue_CastCData( _p[0], dao_QGLFramebufferObjectFormat_Typer );
  QGLFramebufferObject::Attachment attachment= (QGLFramebufferObject::Attachment) _p[1]->v.i;
  self->QGLFramebufferObjectFormat::setAttachment( attachment );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObjectFormat_setInternalTextureFormat( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObjectFormat* self= (QGLFramebufferObjectFormat*) DValue_CastCData( _p[0], dao_QGLFramebufferObjectFormat_Typer );
  GLenum internalTextureFormat= (GLenum) _p[1]->v.i;
  self->QGLFramebufferObjectFormat::setInternalTextureFormat( internalTextureFormat );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObjectFormat_setSamples( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObjectFormat* self= (QGLFramebufferObjectFormat*) DValue_CastCData( _p[0], dao_QGLFramebufferObjectFormat_Typer );
  int samples= (int) _p[1]->v.i;
  self->QGLFramebufferObjectFormat::setSamples( samples );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObjectFormat_setTextureTarget( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObjectFormat* self= (QGLFramebufferObjectFormat*) DValue_CastCData( _p[0], dao_QGLFramebufferObjectFormat_Typer );
  GLenum target= (GLenum) _p[1]->v.i;
  self->QGLFramebufferObjectFormat::setTextureTarget( target );
}
/* qglframebufferobject.h */
static void dao_QGLFramebufferObjectFormat_textureTarget( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFramebufferObjectFormat* self= (QGLFramebufferObjectFormat*) DValue_CastCData( _p[0], dao_QGLFramebufferObjectFormat_Typer );
  GLenum _textureTarget = self->QGLFramebufferObjectFormat::textureTarget(  );
  DaoContext_PutInteger( _ctx, (int) _textureTarget );
}

/*  qglpixelbuffer.h */


static DaoNumItem dao_QGLPixelBuffer_Nums[] =
{
  { NULL, 0, 0 }
};
static void dao_QGLPixelBuffer_QGLPixelBuffer( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_QGLPixelBuffer_dao_2( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_bindTexture( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_bindTexture_dao_2( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_bindTexture_dao_3( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_bindToDynamicTexture( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_deleteTexture( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_devType( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_doneCurrent( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_drawTexture_dao_2( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_drawTexture( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_format( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_generateDynamicTexture( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_hasOpenGLPbuffers( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_isValid( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_makeCurrent( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_metric( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_paintEngine( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_releaseFromDynamicTexture( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_size( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_toImage( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLPixelBuffer_updateDynamicTexture( DaoContext *_ctx, DValue *_p[], int _n );

static DaoFuncItem dao_QGLPixelBuffer_Meths[] = 
{
  { dao_QGLPixelBuffer_QGLPixelBuffer, "QGLPixelBuffer( size : QSize, format : QGLFormat, shareWidget : QGLWidget|null=null )=>QGLPixelBuffer" },
  { dao_QGLPixelBuffer_QGLPixelBuffer_dao_2, "QGLPixelBuffer( width : int, height : int, format : QGLFormat, shareWidget : QGLWidget|null=null )=>QGLPixelBuffer" },
  { dao_QGLPixelBuffer_bindTexture, "bindTexture( self : QGLPixelBuffer, image : QImage, target : int = GL_TEXTURE_2D )=>int" },
  { dao_QGLPixelBuffer_bindTexture_dao_2, "bindTexture( self : QGLPixelBuffer, pixmap : QPixmap, target : int = GL_TEXTURE_2D )=>int" },
  { dao_QGLPixelBuffer_bindTexture_dao_3, "bindTexture( self : QGLPixelBuffer, fileName : string )=>int" },
  { dao_QGLPixelBuffer_bindToDynamicTexture, "bindToDynamicTexture( self : QGLPixelBuffer, texture : int )=>int" },
  { dao_QGLPixelBuffer_deleteTexture, "deleteTexture( self : QGLPixelBuffer, texture_id : int )" },
  { dao_QGLPixelBuffer_devType, "devType( self : QGLPixelBuffer )=>int" },
  { dao_QGLPixelBuffer_doneCurrent, "doneCurrent( self : QGLPixelBuffer )=>int" },
  { dao_QGLPixelBuffer_drawTexture_dao_2, "drawTexture( self : QGLPixelBuffer, point : QPointF, textureId : int, textureTarget : int = GL_TEXTURE_2D )" },
  { dao_QGLPixelBuffer_drawTexture, "drawTexture( self : QGLPixelBuffer, target : QRectF, textureId : int, textureTarget : int = GL_TEXTURE_2D )" },
  { dao_QGLPixelBuffer_format, "format( self : QGLPixelBuffer )=>QGLFormat" },
  { dao_QGLPixelBuffer_generateDynamicTexture, "generateDynamicTexture( self : QGLPixelBuffer )=>int" },
  { dao_QGLPixelBuffer_hasOpenGLPbuffers, "hasOpenGLPbuffers(  )=>int" },
  { dao_QGLPixelBuffer_isValid, "isValid( self : QGLPixelBuffer )=>int" },
  { dao_QGLPixelBuffer_makeCurrent, "makeCurrent( self : QGLPixelBuffer )=>int" },
  { dao_QGLPixelBuffer_metric, "metric( self : QGLPixelBuffer, metric : int )=>int" },
  { dao_QGLPixelBuffer_paintEngine, "paintEngine( self : QGLPixelBuffer )=>QPaintEngine" },
  { dao_QGLPixelBuffer_releaseFromDynamicTexture, "releaseFromDynamicTexture( self : QGLPixelBuffer )" },
  { dao_QGLPixelBuffer_size, "size( self : QGLPixelBuffer )=>QSize" },
  { dao_QGLPixelBuffer_toImage, "toImage( self : QGLPixelBuffer )=>QImage" },
  { dao_QGLPixelBuffer_updateDynamicTexture, "updateDynamicTexture( self : QGLPixelBuffer, texture_id : int )" },
  { NULL, NULL }
};
static void Dao_QGLPixelBuffer_Delete( void *self )
{
	delete (QGLPixelBuffer*) self;
}
void* dao_cast_QGLPixelBuffer_to_QPaintDevice( void *data )
{
	return (QPaintDevice*)(QGLPixelBuffer*)data;
}

static DaoTypeBase QGLPixelBuffer_Typer = 
{ "QGLPixelBuffer", NULL, 
  dao_QGLPixelBuffer_Nums,
  dao_QGLPixelBuffer_Meths, 
  { dao_QPaintDevice_Typer, 0 },
  { dao_cast_QGLPixelBuffer_to_QPaintDevice,0 },
  Dao_QGLPixelBuffer_Delete,
  NULL
};
DaoTypeBase DAO_DLL_QTOPENGL *dao_QGLPixelBuffer_Typer = & QGLPixelBuffer_Typer;
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_QGLPixelBuffer( DaoContext *_ctx, DValue *_p[], int _n )
{
  QSize* size= (QSize*) DValue_CastCData( _p[0], dao_QSize_Typer );
  QGLFormat* format= (QGLFormat*) DValue_CastCData( _p[1], dao_QGLFormat_Typer );
  QGLWidget* shareWidget= (QGLWidget*) DValue_CastCData( _p[2], dao_QGLWidget_Typer );
	DaoCxx_QGLPixelBuffer *_self = DaoCxx_QGLPixelBuffer_New( *size, *format, shareWidget );
	DaoContext_PutResult( _ctx, (DaoBase*) _self->cdata );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_QGLPixelBuffer_dao_2( DaoContext *_ctx, DValue *_p[], int _n )
{
  int width= (int) _p[0]->v.i;
  int height= (int) _p[1]->v.i;
  QGLFormat* format= (QGLFormat*) DValue_CastCData( _p[2], dao_QGLFormat_Typer );
  QGLWidget* shareWidget= (QGLWidget*) DValue_CastCData( _p[3], dao_QGLWidget_Typer );
	DaoCxx_QGLPixelBuffer *_self = DaoCxx_QGLPixelBuffer_New( width, height, *format, shareWidget );
	DaoContext_PutResult( _ctx, (DaoBase*) _self->cdata );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_bindTexture( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLPixelBuffer* self= (QGLPixelBuffer*) DValue_CastCData( _p[0], dao_QGLPixelBuffer_Typer );
  QImage* image= (QImage*) DValue_CastCData( _p[1], dao_QImage_Typer );
  GLenum target= (GLenum) _p[2]->v.i;
  GLuint _bindTexture = self->QGLPixelBuffer::bindTexture( *image, target );
  DaoContext_PutInteger( _ctx, (int) _bindTexture );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_bindTexture_dao_2( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLPixelBuffer* self= (QGLPixelBuffer*) DValue_CastCData( _p[0], dao_QGLPixelBuffer_Typer );
  QPixmap* pixmap= (QPixmap*) DValue_CastCData( _p[1], dao_QPixmap_Typer );
  GLenum target= (GLenum) _p[2]->v.i;
  GLuint _bindTexture = self->QGLPixelBuffer::bindTexture( *pixmap, target );
  DaoContext_PutInteger( _ctx, (int) _bindTexture );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_bindTexture_dao_3( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLPixelBuffer* self= (QGLPixelBuffer*) DValue_CastCData( _p[0], dao_QGLPixelBuffer_Typer );
  char *_mbs1 = DValue_GetMBString( _p[1] );
  QString fileName( _mbs1 );
  GLuint _bindTexture = self->QGLPixelBuffer::bindTexture( fileName );
  DaoContext_PutInteger( _ctx, (int) _bindTexture );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_bindToDynamicTexture( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLPixelBuffer* self= (QGLPixelBuffer*) DValue_CastCData( _p[0], dao_QGLPixelBuffer_Typer );
  GLuint texture= (GLuint) _p[1]->v.i;
  bool _bindToDynamicTexture = self->QGLPixelBuffer::bindToDynamicTexture( texture );
  DaoContext_PutInteger( _ctx, (int) _bindToDynamicTexture );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_deleteTexture( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLPixelBuffer* self= (QGLPixelBuffer*) DValue_CastCData( _p[0], dao_QGLPixelBuffer_Typer );
  GLuint texture_id= (GLuint) _p[1]->v.i;
  self->QGLPixelBuffer::deleteTexture( texture_id );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_devType( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLPixelBuffer *self = (DaoCxx_QGLPixelBuffer*) DValue_CastCData( _p[0], dao_QGLPixelBuffer_Typer );
  int _devType = self->DaoWrap_devType(  );
  DaoContext_PutInteger( _ctx, (int) _devType );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_doneCurrent( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLPixelBuffer* self= (QGLPixelBuffer*) DValue_CastCData( _p[0], dao_QGLPixelBuffer_Typer );
  bool _doneCurrent = self->QGLPixelBuffer::doneCurrent(  );
  DaoContext_PutInteger( _ctx, (int) _doneCurrent );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_drawTexture_dao_2( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLPixelBuffer* self= (QGLPixelBuffer*) DValue_CastCData( _p[0], dao_QGLPixelBuffer_Typer );
  QPointF* point= (QPointF*) DValue_CastCData( _p[1], dao_QPointF_Typer );
  GLuint textureId= (GLuint) _p[2]->v.i;
  GLenum textureTarget= (GLenum) _p[3]->v.i;
  self->QGLPixelBuffer::drawTexture( *point, textureId, textureTarget );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_drawTexture( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLPixelBuffer* self= (QGLPixelBuffer*) DValue_CastCData( _p[0], dao_QGLPixelBuffer_Typer );
  QRectF* target= (QRectF*) DValue_CastCData( _p[1], dao_QRectF_Typer );
  GLuint textureId= (GLuint) _p[2]->v.i;
  GLenum textureTarget= (GLenum) _p[3]->v.i;
  self->QGLPixelBuffer::drawTexture( *target, textureId, textureTarget );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_format( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLPixelBuffer* self= (QGLPixelBuffer*) DValue_CastCData( _p[0], dao_QGLPixelBuffer_Typer );
  QGLFormat _format = self->QGLPixelBuffer::format(  );
  DaoContext_PutCData( _ctx, (void*)new QGLFormat( _format ), dao_QGLFormat_Typer );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_generateDynamicTexture( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLPixelBuffer* self= (QGLPixelBuffer*) DValue_CastCData( _p[0], dao_QGLPixelBuffer_Typer );
  GLuint _generateDynamicTexture = self->QGLPixelBuffer::generateDynamicTexture(  );
  DaoContext_PutInteger( _ctx, (int) _generateDynamicTexture );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_hasOpenGLPbuffers( DaoContext *_ctx, DValue *_p[], int _n )
{
  bool _hasOpenGLPbuffers = QGLPixelBuffer::hasOpenGLPbuffers(  );
  DaoContext_PutInteger( _ctx, (int) _hasOpenGLPbuffers );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_isValid( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLPixelBuffer* self= (QGLPixelBuffer*) DValue_CastCData( _p[0], dao_QGLPixelBuffer_Typer );
  bool _isValid = self->QGLPixelBuffer::isValid(  );
  DaoContext_PutInteger( _ctx, (int) _isValid );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_makeCurrent( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLPixelBuffer* self= (QGLPixelBuffer*) DValue_CastCData( _p[0], dao_QGLPixelBuffer_Typer );
  bool _makeCurrent = self->QGLPixelBuffer::makeCurrent(  );
  DaoContext_PutInteger( _ctx, (int) _makeCurrent );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_metric( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLPixelBuffer *self = (DaoCxx_QGLPixelBuffer*) DValue_CastCData( _p[0], dao_QGLPixelBuffer_Typer );
  QPaintDevice::PaintDeviceMetric metric= (QPaintDevice::PaintDeviceMetric) _p[1]->v.i;
  int _metric = self->DaoWrap_metric( metric );
  DaoContext_PutInteger( _ctx, (int) _metric );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_paintEngine( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLPixelBuffer* self= (QGLPixelBuffer*) DValue_CastCData( _p[0], dao_QGLPixelBuffer_Typer );
  QPaintEngine* _paintEngine = self->QGLPixelBuffer::paintEngine(  );
  DaoContext_WrapCData( _ctx, (void*) _paintEngine, dao_QPaintEngine_Typer );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_releaseFromDynamicTexture( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLPixelBuffer* self= (QGLPixelBuffer*) DValue_CastCData( _p[0], dao_QGLPixelBuffer_Typer );
  self->QGLPixelBuffer::releaseFromDynamicTexture(  );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_size( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLPixelBuffer* self= (QGLPixelBuffer*) DValue_CastCData( _p[0], dao_QGLPixelBuffer_Typer );
  QSize _size = self->QGLPixelBuffer::size(  );
  DaoContext_PutCData( _ctx, (void*)new QSize( _size ), dao_QSize_Typer );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_toImage( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLPixelBuffer* self= (QGLPixelBuffer*) DValue_CastCData( _p[0], dao_QGLPixelBuffer_Typer );
  QImage _toImage = self->QGLPixelBuffer::toImage(  );
  DaoContext_PutCData( _ctx, (void*)new QImage( _toImage ), dao_QImage_Typer );
}
/* qglpixelbuffer.h */
static void dao_QGLPixelBuffer_updateDynamicTexture( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLPixelBuffer* self= (QGLPixelBuffer*) DValue_CastCData( _p[0], dao_QGLPixelBuffer_Typer );
  GLuint texture_id= (GLuint) _p[1]->v.i;
  self->QGLPixelBuffer::updateDynamicTexture( texture_id );
}

/*  qgl.h */


static DaoNumItem dao_QGLWidget_Nums[] =
{
  { NULL, 0, 0 }
};
static void dao_QGLWidget_QGLWidget_dao_2( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_QGLWidget( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_QGLWidget_dao_3( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_autoBufferSwap( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_bindTexture_dao_3( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_bindTexture( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_bindTexture_dao_4( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_bindTexture_dao_2( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_bindTexture_dao_5( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_colormap( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_context( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_convertToGLFormat( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_deleteTexture( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_doneCurrent( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_doubleBuffer( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_drawTexture_dao_2( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_drawTexture( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_event( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_fontDisplayListBase( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_format( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_glDraw( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_glInit( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_grabFrameBuffer( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_initializeGL( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_initializeOverlayGL( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_isSharing( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_isValid( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_makeCurrent( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_makeOverlayCurrent( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_overlayContext( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_paintEngine( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_paintEvent( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_paintGL( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_paintOverlayGL( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_qglClearColor( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_qglColor( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_renderPixmap( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_renderText_dao_2( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_renderText( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_resizeEvent( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_resizeGL( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_resizeOverlayGL( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_setAutoBufferSwap( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_setColormap( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_setContext( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_setFormat( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_setMouseTracking( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_swapBuffers( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_updateGL__QGLWidget( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_updateGL( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_updateOverlayGL__QGLWidget( DaoContext *_ctx, DValue *_p[], int _n );
static void dao_QGLWidget_updateOverlayGL( DaoContext *_ctx, DValue *_p[], int _n );

static DaoFuncItem dao_QGLWidget_Meths[] = 
{
  { dao_QGLWidget_QGLWidget_dao_2, "QGLWidget( context : QGLContext, parent : QWidget|null=null, shareWidget : QGLWidget|null=null, f : int=0 )=>QGLWidget" },
  { dao_QGLWidget_QGLWidget, "QGLWidget( parent : QWidget|null=null, shareWidget : QGLWidget|null=null, f : int=0 )=>QGLWidget" },
  { dao_QGLWidget_QGLWidget_dao_3, "QGLWidget( format : QGLFormat, parent : QWidget|null=null, shareWidget : QGLWidget|null=null, f : int=0 )=>QGLWidget" },
  { dao_QGLWidget_autoBufferSwap, "autoBufferSwap( self : QGLWidget )=>int" },
  { dao_QGLWidget_bindTexture_dao_3, "bindTexture( self : QGLWidget, image : QImage, target : int = GL_TEXTURE_2D, format : int = GL_RGBA )=>int" },
  { dao_QGLWidget_bindTexture, "bindTexture( self : QGLWidget, image : QImage, target : int, format : int, options : int )=>int" },
  { dao_QGLWidget_bindTexture_dao_4, "bindTexture( self : QGLWidget, pixmap : QPixmap, target : int = GL_TEXTURE_2D, format : int = GL_RGBA )=>int" },
  { dao_QGLWidget_bindTexture_dao_2, "bindTexture( self : QGLWidget, pixmap : QPixmap, target : int, format : int, options : int )=>int" },
  { dao_QGLWidget_bindTexture_dao_5, "bindTexture( self : QGLWidget, fileName : string )=>int" },
  { dao_QGLWidget_colormap, "colormap( self : QGLWidget )=>QGLColormap" },
  { dao_QGLWidget_context, "context( self : QGLWidget )=>QGLContext" },
  { dao_QGLWidget_convertToGLFormat, "convertToGLFormat( img : QImage )=>QImage" },
  { dao_QGLWidget_deleteTexture, "deleteTexture( self : QGLWidget, tx_id : int )" },
  { dao_QGLWidget_doneCurrent, "doneCurrent( self : QGLWidget )" },
  { dao_QGLWidget_doubleBuffer, "doubleBuffer( self : QGLWidget )=>int" },
  { dao_QGLWidget_drawTexture_dao_2, "drawTexture( self : QGLWidget, point : QPointF, textureId : int, textureTarget : int = GL_TEXTURE_2D )" },
  { dao_QGLWidget_drawTexture, "drawTexture( self : QGLWidget, target : QRectF, textureId : int, textureTarget : int = GL_TEXTURE_2D )" },
  { dao_QGLWidget_event, "event( self : QGLWidget, _cp0 : QEvent )=>int" },
  { dao_QGLWidget_fontDisplayListBase, "fontDisplayListBase( self : QGLWidget, fnt : QFont, listBase : int = 2000 )=>int" },
  { dao_QGLWidget_format, "format( self : QGLWidget )=>QGLFormat" },
  { dao_QGLWidget_glDraw, "glDraw( self : QGLWidget )" },
  { dao_QGLWidget_glInit, "glInit( self : QGLWidget )" },
  { dao_QGLWidget_grabFrameBuffer, "grabFrameBuffer( self : QGLWidget, withAlpha : int = false )=>QImage" },
  { dao_QGLWidget_initializeGL, "initializeGL( self : QGLWidget )" },
  { dao_QGLWidget_initializeOverlayGL, "initializeOverlayGL( self : QGLWidget )" },
  { dao_QGLWidget_isSharing, "isSharing( self : QGLWidget )=>int" },
  { dao_QGLWidget_isValid, "isValid( self : QGLWidget )=>int" },
  { dao_QGLWidget_makeCurrent, "makeCurrent( self : QGLWidget )" },
  { dao_QGLWidget_makeOverlayCurrent, "makeOverlayCurrent( self : QGLWidget )" },
  { dao_QGLWidget_overlayContext, "overlayContext( self : QGLWidget )=>QGLContext" },
  { dao_QGLWidget_paintEngine, "paintEngine( self : QGLWidget )=>QPaintEngine" },
  { dao_QGLWidget_paintEvent, "paintEvent( self : QGLWidget, _cp0 : QPaintEvent )" },
  { dao_QGLWidget_paintGL, "paintGL( self : QGLWidget )" },
  { dao_QGLWidget_paintOverlayGL, "paintOverlayGL( self : QGLWidget )" },
  { dao_QGLWidget_qglClearColor, "qglClearColor( self : QGLWidget, c : QColor )" },
  { dao_QGLWidget_qglColor, "qglColor( self : QGLWidget, c : QColor )" },
  { dao_QGLWidget_renderPixmap, "renderPixmap( self : QGLWidget, w : int = 0, h : int = 0, useContext : int = false )=>QPixmap" },
  { dao_QGLWidget_renderText_dao_2, "renderText( self : QGLWidget, x : double, y : double, z : double, str : string, fnt : QFont|null=null, listBase : int = 2000 )" },
  { dao_QGLWidget_renderText, "renderText( self : QGLWidget, x : int, y : int, str : string, fnt : QFont|null=null, listBase : int = 2000 )" },
  { dao_QGLWidget_resizeEvent, "resizeEvent( self : QGLWidget, _cp0 : QResizeEvent )" },
  { dao_QGLWidget_resizeGL, "resizeGL( self : QGLWidget, w : int, h : int )" },
  { dao_QGLWidget_resizeOverlayGL, "resizeOverlayGL( self : QGLWidget, w : int, h : int )" },
  { dao_QGLWidget_setAutoBufferSwap, "setAutoBufferSwap( self : QGLWidget, on : int )" },
  { dao_QGLWidget_setColormap, "setColormap( self : QGLWidget, map : QGLColormap )" },
  { dao_QGLWidget_setContext, "setContext( self : QGLWidget, context : QGLContext, shareContext : QGLContext|null=null, deleteOldContext : int = true )" },
  { dao_QGLWidget_setFormat, "setFormat( self : QGLWidget, format : QGLFormat )" },
  { dao_QGLWidget_setMouseTracking, "setMouseTracking( self : QGLWidget, enable : int )" },
  { dao_QGLWidget_swapBuffers, "swapBuffers( self : QGLWidget )" },
  { dao_QGLWidget_updateGL, "updateGL( self : QGLWidget )" },
  { dao_QGLWidget_updateOverlayGL, "updateOverlayGL( self : QGLWidget )" },
  { NULL, NULL }
};
static void Dao_QGLWidget_Delete( void *self )
{
	delete (QGLWidget*) self;
}
void* dao_cast_QGLWidget_to_QWidget( void *data )
{
	return (QWidget*)(QGLWidget*)data;
}

static DaoTypeBase QGLWidget_Typer = 
{ "QGLWidget", NULL, 
  dao_QGLWidget_Nums,
  dao_QGLWidget_Meths, 
  { dao_QWidget_Typer, 0 },
  { dao_cast_QGLWidget_to_QWidget,0 },
  Dao_QGLWidget_Delete,
  NULL
};
DaoTypeBase DAO_DLL_QTOPENGL *dao_QGLWidget_Typer = & QGLWidget_Typer;
/* qgl.h */
static void dao_QGLWidget_QGLWidget_dao_2( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLContext* context= (QGLContext*) DValue_CastCData( _p[0], dao_QGLContext_Typer );
  QWidget* parent= (QWidget*) DValue_CastCData( _p[1], dao_QWidget_Typer );
  QGLWidget* shareWidget= (QGLWidget*) DValue_CastCData( _p[2], dao_QGLWidget_Typer );
  Qt::WindowFlags f= (Qt::WindowFlags) _p[3]->v.i;
	DaoCxx_QGLWidget *_self = DaoCxx_QGLWidget_New( context, parent, shareWidget, f );
	DaoContext_PutResult( _ctx, (DaoBase*) _self->cdata );
}
/* qgl.h */
static void dao_QGLWidget_QGLWidget( DaoContext *_ctx, DValue *_p[], int _n )
{
  QWidget* parent= (QWidget*) DValue_CastCData( _p[0], dao_QWidget_Typer );
  QGLWidget* shareWidget= (QGLWidget*) DValue_CastCData( _p[1], dao_QGLWidget_Typer );
  Qt::WindowFlags f= (Qt::WindowFlags) _p[2]->v.i;
	DaoCxx_QGLWidget *_self = DaoCxx_QGLWidget_New( parent, shareWidget, f );
	DaoContext_PutResult( _ctx, (DaoBase*) _self->cdata );
}
/* qgl.h */
static void dao_QGLWidget_QGLWidget_dao_3( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLFormat* format= (QGLFormat*) DValue_CastCData( _p[0], dao_QGLFormat_Typer );
  QWidget* parent= (QWidget*) DValue_CastCData( _p[1], dao_QWidget_Typer );
  QGLWidget* shareWidget= (QGLWidget*) DValue_CastCData( _p[2], dao_QGLWidget_Typer );
  Qt::WindowFlags f= (Qt::WindowFlags) _p[3]->v.i;
	DaoCxx_QGLWidget *_self = DaoCxx_QGLWidget_New( *format, parent, shareWidget, f );
	DaoContext_PutResult( _ctx, (DaoBase*) _self->cdata );
}
/* qgl.h */
static void dao_QGLWidget_autoBufferSwap( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLWidget *self = (DaoCxx_QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  bool _autoBufferSwap = self->DaoWrap_autoBufferSwap(  );
  DaoContext_PutInteger( _ctx, (int) _autoBufferSwap );
}
/* qgl.h */
static void dao_QGLWidget_bindTexture_dao_3( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  QImage* image= (QImage*) DValue_CastCData( _p[1], dao_QImage_Typer );
  GLenum target= (GLenum) _p[2]->v.i;
  GLint format= (GLint) _p[3]->v.i;
  GLuint _bindTexture = self->QGLWidget::bindTexture( *image, target, format );
  DaoContext_PutInteger( _ctx, (int) _bindTexture );
}
/* qgl.h */
static void dao_QGLWidget_bindTexture( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  QImage* image= (QImage*) DValue_CastCData( _p[1], dao_QImage_Typer );
  GLenum target= (GLenum) _p[2]->v.i;
  GLint format= (GLint) _p[3]->v.i;
  QGLContext::BindOptions options= (QGLContext::BindOptions) _p[4]->v.i;
  GLuint _bindTexture = self->QGLWidget::bindTexture( *image, target, format, options );
  DaoContext_PutInteger( _ctx, (int) _bindTexture );
}
/* qgl.h */
static void dao_QGLWidget_bindTexture_dao_4( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  QPixmap* pixmap= (QPixmap*) DValue_CastCData( _p[1], dao_QPixmap_Typer );
  GLenum target= (GLenum) _p[2]->v.i;
  GLint format= (GLint) _p[3]->v.i;
  GLuint _bindTexture = self->QGLWidget::bindTexture( *pixmap, target, format );
  DaoContext_PutInteger( _ctx, (int) _bindTexture );
}
/* qgl.h */
static void dao_QGLWidget_bindTexture_dao_2( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  QPixmap* pixmap= (QPixmap*) DValue_CastCData( _p[1], dao_QPixmap_Typer );
  GLenum target= (GLenum) _p[2]->v.i;
  GLint format= (GLint) _p[3]->v.i;
  QGLContext::BindOptions options= (QGLContext::BindOptions) _p[4]->v.i;
  GLuint _bindTexture = self->QGLWidget::bindTexture( *pixmap, target, format, options );
  DaoContext_PutInteger( _ctx, (int) _bindTexture );
}
/* qgl.h */
static void dao_QGLWidget_bindTexture_dao_5( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  char *_mbs1 = DValue_GetMBString( _p[1] );
  QString fileName( _mbs1 );
  GLuint _bindTexture = self->QGLWidget::bindTexture( fileName );
  DaoContext_PutInteger( _ctx, (int) _bindTexture );
}
/* qgl.h */
static void dao_QGLWidget_colormap( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  const QGLColormap& _colormap = self->QGLWidget::colormap(  );
  DaoContext_PutCData( _ctx, (void*)new QGLColormap( _colormap ), dao_QGLColormap_Typer );
}
/* qgl.h */
static void dao_QGLWidget_context( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  const QGLContext* _context = self->QGLWidget::context(  );
  DaoContext_WrapCData( _ctx, (void*) _context, dao_QGLContext_Typer );
}
/* qgl.h */
static void dao_QGLWidget_convertToGLFormat( DaoContext *_ctx, DValue *_p[], int _n )
{
  QImage* img= (QImage*) DValue_CastCData( _p[0], dao_QImage_Typer );
  QImage _convertToGLFormat = QGLWidget::convertToGLFormat( *img );
  DaoContext_PutCData( _ctx, (void*)new QImage( _convertToGLFormat ), dao_QImage_Typer );
}
/* qgl.h */
static void dao_QGLWidget_deleteTexture( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  GLuint tx_id= (GLuint) _p[1]->v.i;
  self->QGLWidget::deleteTexture( tx_id );
}
/* qgl.h */
static void dao_QGLWidget_doneCurrent( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  self->QGLWidget::doneCurrent(  );
}
/* qgl.h */
static void dao_QGLWidget_doubleBuffer( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  bool _doubleBuffer = self->QGLWidget::doubleBuffer(  );
  DaoContext_PutInteger( _ctx, (int) _doubleBuffer );
}
/* qgl.h */
static void dao_QGLWidget_drawTexture_dao_2( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  QPointF* point= (QPointF*) DValue_CastCData( _p[1], dao_QPointF_Typer );
  GLuint textureId= (GLuint) _p[2]->v.i;
  GLenum textureTarget= (GLenum) _p[3]->v.i;
  self->QGLWidget::drawTexture( *point, textureId, textureTarget );
}
/* qgl.h */
static void dao_QGLWidget_drawTexture( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  QRectF* target= (QRectF*) DValue_CastCData( _p[1], dao_QRectF_Typer );
  GLuint textureId= (GLuint) _p[2]->v.i;
  GLenum textureTarget= (GLenum) _p[3]->v.i;
  self->QGLWidget::drawTexture( *target, textureId, textureTarget );
}
/* qgl.h */
static void dao_QGLWidget_event( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLWidget *self = (DaoCxx_QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  QEvent* _cp0= (QEvent*) DValue_CastCData( _p[1], dao_QEvent_Typer );
  bool _event = self->DaoWrap_event( _cp0 );
  DaoContext_PutInteger( _ctx, (int) _event );
}
/* qgl.h */
static void dao_QGLWidget_fontDisplayListBase( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLWidget *self = (DaoCxx_QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  QFont* fnt= (QFont*) DValue_CastCData( _p[1], dao_QFont_Typer );
  int listBase= (int) _p[2]->v.i;
  int _fontDisplayListBase = self->DaoWrap_fontDisplayListBase( *fnt, listBase );
  DaoContext_PutInteger( _ctx, (int) _fontDisplayListBase );
}
/* qgl.h */
static void dao_QGLWidget_format( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  QGLFormat _format = self->QGLWidget::format(  );
  DaoContext_PutCData( _ctx, (void*)new QGLFormat( _format ), dao_QGLFormat_Typer );
}
/* qgl.h */
static void dao_QGLWidget_glDraw( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLWidget *self = (DaoCxx_QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  self->DaoWrap_glDraw(  );
}
/* qgl.h */
static void dao_QGLWidget_glInit( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLWidget *self = (DaoCxx_QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  self->DaoWrap_glInit(  );
}
/* qgl.h */
static void dao_QGLWidget_grabFrameBuffer( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  bool withAlpha= (bool) _p[1]->v.i;
  QImage _grabFrameBuffer = self->QGLWidget::grabFrameBuffer( withAlpha );
  DaoContext_PutCData( _ctx, (void*)new QImage( _grabFrameBuffer ), dao_QImage_Typer );
}
/* qgl.h */
static void dao_QGLWidget_initializeGL( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLWidget *self = (DaoCxx_QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  self->DaoWrap_initializeGL(  );
}
/* qgl.h */
static void dao_QGLWidget_initializeOverlayGL( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLWidget *self = (DaoCxx_QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  self->DaoWrap_initializeOverlayGL(  );
}
/* qgl.h */
static void dao_QGLWidget_isSharing( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  bool _isSharing = self->QGLWidget::isSharing(  );
  DaoContext_PutInteger( _ctx, (int) _isSharing );
}
/* qgl.h */
static void dao_QGLWidget_isValid( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  bool _isValid = self->QGLWidget::isValid(  );
  DaoContext_PutInteger( _ctx, (int) _isValid );
}
/* qgl.h */
static void dao_QGLWidget_makeCurrent( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  self->QGLWidget::makeCurrent(  );
}
/* qgl.h */
static void dao_QGLWidget_makeOverlayCurrent( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  self->QGLWidget::makeOverlayCurrent(  );
}
/* qgl.h */
static void dao_QGLWidget_overlayContext( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  const QGLContext* _overlayContext = self->QGLWidget::overlayContext(  );
  DaoContext_WrapCData( _ctx, (void*) _overlayContext, dao_QGLContext_Typer );
}
/* qgl.h */
static void dao_QGLWidget_paintEngine( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  QPaintEngine* _paintEngine = self->QGLWidget::paintEngine(  );
  DaoContext_WrapCData( _ctx, (void*) _paintEngine, dao_QPaintEngine_Typer );
}
/* qgl.h */
static void dao_QGLWidget_paintEvent( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLWidget *self = (DaoCxx_QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  QPaintEvent* _cp0= (QPaintEvent*) DValue_CastCData( _p[1], dao_QPaintEvent_Typer );
  self->DaoWrap_paintEvent( _cp0 );
}
/* qgl.h */
static void dao_QGLWidget_paintGL( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLWidget *self = (DaoCxx_QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  self->DaoWrap_paintGL(  );
}
/* qgl.h */
static void dao_QGLWidget_paintOverlayGL( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLWidget *self = (DaoCxx_QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  self->DaoWrap_paintOverlayGL(  );
}
/* qgl.h */
static void dao_QGLWidget_qglClearColor( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  QColor* c= (QColor*) DValue_CastCData( _p[1], dao_QColor_Typer );
  self->QGLWidget::qglClearColor( *c );
}
/* qgl.h */
static void dao_QGLWidget_qglColor( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  QColor* c= (QColor*) DValue_CastCData( _p[1], dao_QColor_Typer );
  self->QGLWidget::qglColor( *c );
}
/* qgl.h */
static void dao_QGLWidget_renderPixmap( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  int w= (int) _p[1]->v.i;
  int h= (int) _p[2]->v.i;
  bool useContext= (bool) _p[3]->v.i;
  QPixmap _renderPixmap = self->QGLWidget::renderPixmap( w, h, useContext );
  DaoContext_PutCData( _ctx, (void*)new QPixmap( _renderPixmap ), dao_QPixmap_Typer );
}
/* qgl.h */
static void dao_QGLWidget_renderText_dao_2( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  double x= (double) _p[1]->v.d;
  double y= (double) _p[2]->v.d;
  double z= (double) _p[3]->v.d;
  char *_mbs4 = DValue_GetMBString( _p[4] );
  QString str( _mbs4 );
  QFont* fnt= (QFont*) DValue_CastCData( _p[5], dao_QFont_Typer );
  int listBase= (int) _p[6]->v.i;
  if(_n<=5) self->QGLWidget::renderText( x, y, z, str );
  else self->QGLWidget::renderText( x, y, z, str, *fnt, listBase );
}
/* qgl.h */
static void dao_QGLWidget_renderText( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  int x= (int) _p[1]->v.i;
  int y= (int) _p[2]->v.i;
  char *_mbs3 = DValue_GetMBString( _p[3] );
  QString str( _mbs3 );
  QFont* fnt= (QFont*) DValue_CastCData( _p[4], dao_QFont_Typer );
  int listBase= (int) _p[5]->v.i;
  if(_n<=4) self->QGLWidget::renderText( x, y, str );
  else self->QGLWidget::renderText( x, y, str, *fnt, listBase );
}
/* qgl.h */
static void dao_QGLWidget_resizeEvent( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLWidget *self = (DaoCxx_QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  QResizeEvent* _cp0= (QResizeEvent*) DValue_CastCData( _p[1], dao_QResizeEvent_Typer );
  self->DaoWrap_resizeEvent( _cp0 );
}
/* qgl.h */
static void dao_QGLWidget_resizeGL( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLWidget *self = (DaoCxx_QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  int w= (int) _p[1]->v.i;
  int h= (int) _p[2]->v.i;
  self->DaoWrap_resizeGL( w, h );
}
/* qgl.h */
static void dao_QGLWidget_resizeOverlayGL( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLWidget *self = (DaoCxx_QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  int w= (int) _p[1]->v.i;
  int h= (int) _p[2]->v.i;
  self->DaoWrap_resizeOverlayGL( w, h );
}
/* qgl.h */
static void dao_QGLWidget_setAutoBufferSwap( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( _p[0]->t == DAO_CDATA && DaoCData_GetObject( _p[0]->v.cdata ) == NULL ){
    DaoContext_RaiseException( _ctx, DAO_ERROR, "call to protected method" );
    return;
  }
  DaoCxx_QGLWidget *self = (DaoCxx_QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  bool on= (bool) _p[1]->v.i;
  self->DaoWrap_setAutoBufferSwap( on );
}
/* qgl.h */
static void dao_QGLWidget_setColormap( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  QGLColormap* map= (QGLColormap*) DValue_CastCData( _p[1], dao_QGLColormap_Typer );
  self->QGLWidget::setColormap( *map );
}
/* qgl.h */
static void dao_QGLWidget_setContext( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  QGLContext* context= (QGLContext*) DValue_CastCData( _p[1], dao_QGLContext_Typer );
  QGLContext* shareContext= (QGLContext*) DValue_CastCData( _p[2], dao_QGLContext_Typer );
  bool deleteOldContext= (bool) _p[3]->v.i;
  self->QGLWidget::setContext( context, shareContext, deleteOldContext );
}
/* qgl.h */
static void dao_QGLWidget_setFormat( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  QGLFormat* format= (QGLFormat*) DValue_CastCData( _p[1], dao_QGLFormat_Typer );
  self->QGLWidget::setFormat( *format );
}
/* qgl.h */
static void dao_QGLWidget_setMouseTracking( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  bool enable= (bool) _p[1]->v.i;
  self->QGLWidget::setMouseTracking( enable );
}
/* qgl.h */
static void dao_QGLWidget_swapBuffers( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  self->QGLWidget::swapBuffers(  );
}
/* qgl.h */
static void dao_QGLWidget_updateGL__QGLWidget( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  self->QGLWidget::updateGL(  );
}
/* qgl.h */
static void dao_QGLWidget_updateGL( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( DaoCData_OwnData( _p[0]->v.cdata ) ){
    dao_QGLWidget_updateGL__QGLWidget( _ctx, _p, _n );
    return;
  }
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  self->updateGL(  );
}
/* qgl.h */
static void dao_QGLWidget_updateOverlayGL__QGLWidget( DaoContext *_ctx, DValue *_p[], int _n )
{
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  self->QGLWidget::updateOverlayGL(  );
}
/* qgl.h */
static void dao_QGLWidget_updateOverlayGL( DaoContext *_ctx, DValue *_p[], int _n )
{
  if( DaoCData_OwnData( _p[0]->v.cdata ) ){
    dao_QGLWidget_updateOverlayGL__QGLWidget( _ctx, _p, _n );
    return;
  }
  QGLWidget* self= (QGLWidget*) DValue_CastCData( _p[0], dao_QGLWidget_Typer );
  self->updateOverlayGL(  );
}

/*   */


static DaoNumItem dao_QPixmapCache_KeyData_Nums[] =
{
  { NULL, 0, 0 }
};

static DaoFuncItem dao_QPixmapCache_KeyData_Meths[] = 
{
  { NULL, NULL }
};
static void Dao_QPixmapCache_KeyData_Delete( void *self )
{
	free( self );
}

static DaoTypeBase QPixmapCache_KeyData_Typer = 
{ "QPixmapCache_KeyData", NULL, 
  dao_QPixmapCache_KeyData_Nums,
  dao_QPixmapCache_KeyData_Meths, 
  { 0 },
  { 0 },
  Dao_QPixmapCache_KeyData_Delete,
  NULL
};
DaoTypeBase DAO_DLL_QTOPENGL *dao_QPixmapCache_KeyData_Typer = & QPixmapCache_KeyData_Typer;

/*  qgl.h */

#ifdef __cplusplus
}
#endif

